Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 6:fa26de2b3489, committed 2020-07-29
- Comitter:
- faker_71
- Date:
- Wed Jul 29 03:23:19 2020 +0000
- Parent:
- 5:9f46b8cdd469
- Commit message:
- wifi configuration
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9f46b8cdd469 -r fa26de2b3489 main.cpp
--- 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;