siqiang pan
/
ESP8266-configuration-mbed-LPC1768
wifi configuration
Diff: main.cpp
- Revision:
- 6:fa26de2b3489
- Parent:
- 5:9f46b8cdd469
--- a/main.cpp Fri Aug 28 01:21:15 2015 +0000 +++ b/main.cpp Wed Jul 29 03:23:19 2020 +0000 @@ -2,6 +2,8 @@ Serial pc(USBTX, USBRX); Serial esp(p28, p27); // tx, rx +//Serial esp(p9, p10); // tx, rx + DigitalOut reset(p26); Timer t; @@ -9,9 +11,11 @@ char buf[1024]; char snd[255]; -char ssid[32] = "mySSID"; // enter WiFi router ssid inside the quotes -char pwd [32] = "myPASSWORD"; // enter WiFi router password inside the quotes - +//char ssid[32] = "802ZTa-008AD0"; // enter WiFi router ssid inside the quotes +char ssid[32] = "802ZTa-003243"; // enter WiFi router ssid inside the quotes +//char ssid[32] = "802ZTa-00311F"; +char pwd [32] = "0129875a"; // enter WiFi router password inside the quotes +//char pwd [32] = "0126954a"; void SendCMD(),getreply(),ESPconfig(),ESPsetbaudrate(); @@ -19,7 +23,7 @@ { reset=0; //hardware reset for 8266 pc.baud(115200); // set what you want here depending on your terminal program speed - pc.printf("\f\n\r-------------ESP8266 Hardware Reset-------------\n\r"); + pc.printf("\f\n\r-------------ESP8266 Hardware Reset psqconfig-------------\n\r"); wait(0.5); reset=1; timeout=2;