ESP8266

Dependencies:   mbed

Fork of Client-ESP8266 by Digital dog

Revision:
3:2df821b3eb35
Parent:
2:a3692ba08124
Child:
4:484b0a418fed
--- a/ESP8266.cpp	Sun Dec 10 18:46:31 2017 +0000
+++ b/ESP8266.cpp	Mon Dec 11 07:16:00 2017 +0000
@@ -106,7 +106,7 @@
 
 void ESP8266::look(void) {
     char rs[10];
-    strcpy(rs, "AT+CWSAP?");
+    strcpy(rs, "AT+CWJAP?");
     SendCMD(rs);
 }
 
@@ -117,6 +117,12 @@
     RcvReply(ip, 2000);
 }
 
+void ESP8266::transfer(void) {
+    char cmd[15];
+    strcpy(cmd, "AT+CIPMODE=1");
+    SendCMD(cmd);
+}
+
 void ESP8266::SetSingle(void) {
     char cmd[15];
     strcpy(cmd, "AT+CIPMUX=0");
@@ -145,3 +151,9 @@
     AddChar(cmd, 0x22);
     SendCMD(cmd);
 }
+
+void ESP8266::sent(void) {
+    char rs[10];
+    strcpy(rs, "AT+CIPSEND=5");
+    SendCMD(rs);
+}