24 #define PASSWORD "12345678"
31 Serial.print(
"setup begin\r\n");
33 Serial.print(
"FW Version: ");
38 Serial.print(
"to station ok\r\n");
40 Serial.print(
"to station err\r\n");
43 if (wifi.
joinAP(SSID, PASSWORD)) {
44 Serial.print(
"Join AP success\r\n");
48 Serial.print(
"Join AP failure\r\n");
51 Serial.print(
"setup end\r\n");
String getVersion(void)
Get the version of AT Command Set.
String getLocalIP(void)
Get the IP address of ESP8266.
The definition of class ESP8266.
bool joinAP(String ssid, String pwd)
Join in AP.
Provide an easy-to-use way to manipulate ESP8266.
bool setOprToStation(void)
Set operation mode to staion.