arduino-esp32-custom-lwip-p.../libraries/NetBIOS/examples/ESP_NBNST/ESP_NBNST.ino

32 lines
561 B
C++
Executable File

#include <WiFi.h>
#include <NetBIOS.h>
const char* ssid = "............";
const char* password = "..............";
void setup() {
Serial.begin(115200);
// Connect to WiFi network
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
NBNS.begin("ESP");
}
void loop() {
}