Rick McConney
/
TCPSend
TCP send example
Fork of StarterKit by
Diff: Wnc.h
- Revision:
- 45:fe90f1fcb4e0
- Parent:
- 44:60008ebffdd4
--- a/Wnc.h Wed Oct 26 18:40:40 2016 +0000 +++ b/Wnc.h Wed Nov 30 14:50:16 2016 +0000 @@ -11,7 +11,7 @@ class Wnc { public: Wnc(void); - int init(void); + bool init(void); bool isModemResponding(); char* read(int timeout_ms); @@ -26,16 +26,18 @@ void wakeFromPowerSave(); char* getIccid(); - void startInternet(); + bool startInternet(); bool connect(char* ip, int port); void disconnect(); - char* writeSocket(const char * s); + bool writeSocket(const char * s); char* readSocket(); char* ping(char* ip); void setIn(); void passthrough(); void checkPassthrough(); void toggleWake(); + char* resolveDn(const char* name); + bool cmdFailed(char* reply,char* msg); private: int secToTau(int time);