This library controls the WNC. There is a derived class for usage from the K64F board.
Fork of WncControllerLibrary by
Diff: WncController.h
- Revision:
- 10:2ec59906a24e
- Parent:
- 6:a656e820d7ff
- Child:
- 12:33290e9e6e5f
--- a/WncController.h Fri Sep 09 17:47:55 2016 +0000
+++ b/WncController.h Fri Sep 09 23:07:36 2016 +0000
@@ -349,7 +349,7 @@
size_t mdmGetline(string * buff, int timeout_ms);
bool at_at_wnc(void);
bool at_init_wnc(bool hardReset = false);
- bool at_sockopen_wnc(const char * const ip, uint16_t port, uint16_t numSock, bool tcp, uint16_t timeOutSec);
+ int16_t at_sockopen_wnc(const char * const ip, uint16_t port, uint16_t numSock, bool tcp, uint16_t timeOutSec);
bool at_sockclose_wnc(uint16_t numSock);
bool at_dnsresolve_wnc(const char * s, string * ipStr);
AtCmdErr_e at_sockwrite_wnc(const char * s, uint32_t n, uint16_t numSock, bool isTcp);
@@ -398,6 +398,7 @@
static const char * const INVALID_IP_STR; // Just a string set to an IP address when DNS resolve fails.
struct WncSocketInfo_s {
+ int16_t numWncSock;
bool open;
string myIpAddressStr;
uint16_t myPort;
@@ -408,6 +409,7 @@
};
static WncSocketInfo_s m_sSock[MAX_NUM_WNC_SOCKETS];
+ static const WncSocketInfo_s defaultSockStruct;
static WncState_e m_sState;
static uint16_t m_sCmdTimeoutMs;
static string m_sApnStr;
