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");
bool joinAP(String ssid, String pwd, uint8_t pattern=3)
Join in AP.
String getVersion(void)
Get the version of AT Command Set.
String getLocalIP(void)
Get the IP address of ESP8266.
The definition of class ESP8266.
Provide an easy-to-use way to manipulate ESP8266.
bool setOprToStation(uint8_t pattern1=3, uint8_t pattern2=3)
Set operation mode to station.