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: BufferedSerial
Dependents: esp8266_nodeMCU1 esp8266_2_thingspeak1 Solarator_0-0-2 IoTBurglar_and_Fire_AlarmSystem ... more
Fork of ESP8266Interface by
Diff: Socket/Socket.cpp
- Revision:
- 40:0a83315aea0a
- Parent:
- 36:e1545c6c2cb3
- Child:
- 42:3f62103a4f3c
diff -r 89e259295728 -r 0a83315aea0a Socket/Socket.cpp
--- a/Socket/Socket.cpp Sat May 02 04:08:30 2015 +0000
+++ b/Socket/Socket.cpp Mon May 04 12:04:54 2015 +0000
@@ -20,7 +20,7 @@
#include <cstring>
//Debug is disabled by default
-#if 1
+#if 0
//Enable debug
#include <cstdio>
#define DBG(x, ...) std::printf("[Socket : DBG]"x" [%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__);
@@ -35,8 +35,6 @@
#endif
-extern Serial pc;
-
Socket::Socket() : _blocking(true), _timeout(1500) {
wifi = ESP8266::getInstance();
if (wifi == NULL)
@@ -50,6 +48,7 @@
}
int Socket::close() {
+
return (wifi->close()) ? 0 : -1;
}

Adafruit Huzzah