Add a bunch of APNs

Fork of C027_Support by Xinlei Cao

Revision:
23:05a1aeeb5fd9
Parent:
22:29322c22577e
Child:
24:0e287a85ac9e
--- a/MDM.h	Tue Apr 08 09:17:50 2014 +0000
+++ b/MDM.h	Tue Apr 08 11:11:20 2014 +0000
@@ -60,7 +60,7 @@
     bool join(const char* apn, const char* user = NULL, const char* password = NULL);
     bool disconnect(void);
     bool gethostbyname(const char* host, IP* ip);
-    // sockets
+    // socket interface
     typedef enum { IPPROTO_TCP, IPPROTO_UDP } IpProtocol;
     int socketSocket(IpProtocol ipproto);
     bool socketConnect(int socket, const char * host, int port);
@@ -84,8 +84,8 @@
     virtual int _send(const void* buf, int len) = 0;
 private:
     typedef enum { MODEL_UNKNOWN, MODEL_SARA_G350, MODEL_LISA_U200, MODEL_LISA_C200 } Model; 
+    typedef enum { NET_UNKNOWN, NET_DENIED, NET_NONE, NET_HOME, NET_ROAMING } Net; 
     typedef enum { SIM_UNKNOWN, SIM_PIN, SIM_READY } Sim; 
-    typedef enum { NET_UNKNOWN, NET_DENIED, NET_NONE, NET_HOME, NET_ROAMING } Net; 
     static int _cbATI(int type, const char* buf, int len, Model* model);
     static int _cbUDNSRN(int type, const char* buf, int len, IP* ip);
     static int _cbUSOCR(int type, const char* buf, int len, int* socket);
@@ -100,6 +100,7 @@
     Model _model;
     Sim _sim;
     Net _net;
+    char _num[32];
     int _rssi;
 private:
     typedef enum { SOCK_FREE, SOCK_CREATED, SOCK_CONNECTED } SockState;