rhergr
Fork of WizFi310Interface_Legacy by
Diff: WizFi310Interface.h
- Revision:
- 2:ee7e278fe372
- Parent:
- 0:774ff1e8b26b
--- a/WizFi310Interface.h Tue May 02 00:31:36 2017 +0000 +++ b/WizFi310Interface.h Sun Sep 17 05:30:43 2017 +0000 @@ -27,8 +27,10 @@ #define WIZFI310INTERFACE_H_ #include "WizFi310.h" +#include "TCPSocketConnection.h" -class WizFi310Interface : public WizFi310{ + +class WizFi310Interface : public WizFi310,public TCPSocketConnection{ public: WizFi310Interface(PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm = NC, int baud = 115200); @@ -37,6 +39,7 @@ int init(const char* ip, const char* mask, const char* gateway, const char* name = NULL); int connect(Security sec, const char* ssid, const char* phrase, WiFiMode mode = WM_STATION); int disconnect(); + int test_weathermap(); char* getMACAddress(); char* getIPAddress(); char* getGateway(); @@ -44,7 +47,6 @@ int setAntMode(AntennaMode mode); - };