easy connect wnc added to http request with debug mode enabled. traces collected for AT%CGEQOS, AT%MEAS, AT%PCONI
Fork of WncControllerLibrary by
Diff: WncController.cpp
- Revision:
- 15:2c8211ef69e1
- Parent:
- 14:e846217affcd
- Child:
- 16:f748245382ac
--- a/WncController.cpp Sat Sep 10 02:02:05 2016 +0000 +++ b/WncController.cpp Sat Sep 10 02:32:47 2016 +0000 @@ -336,6 +336,23 @@ * * \details None. */ + +bool WncController::openSocketUrl(uint16_t numSock, const char * url, uint16_t port, bool tcp, uint16_t timeOutSec) +{ + if (resolveUrl(numSock, url) == true) + return (openSocket(numSock, port, tcp, timeOutSec)); + + return (false); +} + +bool WncController::openSocketIpAddr(uint16_t numSock, const char * ipAddr, uint16_t port, bool tcp, uint16_t timeOutSec) +{ + if (setIpAddr(numSock, ipAddr) == true) + return (openSocket(numSock, port, tcp, timeOutSec)); + + return (false); +} + bool WncController::openSocket(uint16_t numSock, uint16_t port, bool tcp, uint16_t timeOutSec) { if (numSock < MAX_NUM_WNC_SOCKETS) {