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.
Dependencies: mbed ds3231 SX1276Lib_LoRa_Access_Point
Diff: ESP8266.cpp
- Revision:
- 8:5d99fbf255d6
- Parent:
- 5:19b34c4d27a1
- Child:
- 10:e62222c46ee9
--- a/ESP8266.cpp Tue May 01 11:35:51 2018 +0000
+++ b/ESP8266.cpp Wed Feb 13 18:03:44 2019 +0000
@@ -57,13 +57,14 @@
ClearBuffer();
if(c =='\n') {
- if( strncmp( ( const char* )buffer, response, strlen(response) ) == 0 )
+// if( strncmp( ( const char* )buffer, response, strlen(response) ) == 0 )
+ if (strstr(buffer, response) != NULL)
receiveResponse = true;
- if( strncmp( ( const char* )buffer, "~~~", 3 ) == 0 )
+// if( strncmp( ( const char* )buffer, "~~~", 3 ) == 0 )
+ if (strstr(buffer, "~~~") != NULL)
wifiUart.printf("%s", WIFI_ALIVE_RESPONSE);
-
if (strstr(buffer, "0|") != NULL)
rfm.SendMessage(buffer);