Connect Wi-Fi

Dependencies:   mbed

Fork of Server-ESP8266 by Digital dog

Revision:
6:c92b4601e449
Parent:
5:569ef8ad0b45
--- a/main.cpp	Mon Dec 11 07:16:36 2017 +0000
+++ b/main.cpp	Mon Dec 11 15:16:47 2017 +0000
@@ -2,8 +2,8 @@
 #include <string>
 #include "ESP8266.h"
 ////////////////
-ESP8266 esp(D8, D2, 9600);
-Serial pc(D1, D0);
+ESP8266 esp(D8, D2, 115200);
+Serial pc(D1, D0, 115200);
 
 char snd[255], rcv[1000];
 
@@ -60,7 +60,7 @@
     wait(4);
 
     pc.printf("Start server mode on port 80\r\n");
-    esp.StartServerMode(80);
+    esp.StartServerMode();
     esp.RcvReply(rcv, 1000);
     pc.printf("%s", rcv);
     wait(4);