Provide an easy-to-use way to manipulate ESP8266.
Fork of WeeESP8266 by
Diff: ESP8266.h
- Revision:
- 23:b888991fd6fd
- Parent:
- 22:9b876a9b2f80
--- a/ESP8266.h Sat Mar 14 10:16:33 2015 +0000 +++ b/ESP8266.h Sat Mar 28 14:49:05 2015 +0000 @@ -138,9 +138,10 @@ /** * Get the current status of connection(UDP and TCP). * + * @param pStatus - pointer to int for Status, decoded from status query * @return the status. */ - String getIPStatus(void); + String getIPStatus(int *pStatus=NULL); /** * Get the IP address of ESP8266. @@ -389,7 +390,7 @@ bool sATCWSAP(String ssid, String pwd, uint8_t chl, uint8_t ecn); bool eATCWLIF(String &list); - bool eATCIPSTATUS(String &list); + bool eATCIPSTATUS(String &list, int *pStatus=NULL); bool sATCIPSTARTSingle(String type, String addr, uint32_t port); bool sATCIPSTARTMultiple(uint8_t mux_id, String type, String addr, uint32_t port); bool sATCIPSENDSingle(const uint8_t *buffer, uint32_t len);