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: ESP8266
Fork of ESP8266Interface by
Diff: ESP8266Interface.h
- Revision:
- 53:8ded612adb96
- Parent:
- 51:eb8c3577e22d
- Child:
- 55:c0808849cb89
--- a/ESP8266Interface.h Thu Mar 03 17:51:31 2016 +0000
+++ b/ESP8266Interface.h Wed Mar 09 06:11:11 2016 +0000
@@ -22,13 +22,13 @@
#define ESP8266_SOCKET_COUNT 5
-
/** ESP8266Interface class
* Implementation of the NetworkInterface for the ESP8266
*/
class ESP8266Interface : public WiFiInterface
{
public:
+
ESP8266Interface(PinName tx, PinName rx, bool debug = false);
virtual ~ESP8266Interface();
@@ -48,12 +48,15 @@
virtual void destroySocket(SocketInterface *socket);
private:
+
ESP8266 _esp;
bool _ids[ESP8266_SOCKET_COUNT];
// Implementation of the SocketInterface for the ESP8266
- struct ESP8266Socket : public SocketInterface
+ class ESP8266Socket : public SocketInterface
{
+ public:
+
// ESP8266 specific details
ESP8266 *_esp;
ns_protocol_t _proto;
@@ -71,5 +74,4 @@
};
};
-
#endif
