Add a bunch of APNs
Fork of C027_Support by
Diff: MDM.h
- Revision:
- 57:869bd35f44cc
- Parent:
- 54:7ba8e4c218e2
- Child:
- 58:e38a2e942fbb
--- a/MDM.h Mon May 12 13:05:27 2014 +0000 +++ b/MDM.h Mon May 12 13:58:47 2014 +0000 @@ -78,15 +78,27 @@ // ---------------------------------------------------------------- - // Data Connection (GPRS) + // Device // ---------------------------------------------------------------- + /** Combined Init, checkNetStatus, join suitable for simple applications + \param simpin a optional pin of the SIM card + \param apn the of the network provider e.g. "internet" or "apn.provider.com" + \param username is the user name text string for the authentication phase + \param password is the password text string for the authentication phase + \param dump set to true if you like to dump the status if successful + \return true if successful, false otherwise + */ + bool connect(const char* simpin, + const char* apn, const char* username, const char* password, + bool dump); + /** register (Attach) the MT to the GPRS service. - \param pin a optional pin of the SIM card + \param simpin a optional pin of the SIM card \param status an optional struture to with device information \return true if successful, false otherwise */ - bool init(const char* pin = NULL, DevStatus* status = NULL); + bool init(const char* simpin = NULL, DevStatus* status = NULL); /** check if the network is available \param status an optional structure to with network information @@ -106,11 +118,12 @@ /** register (Attach) the MT to the GPRS service. \param apn the of the network provider e.g. "internet" or "apn.provider.com" - \param user is the user name text string for the authentication phase + \param username is the user name text string for the authentication phase \param password is the password text string for the authentication phase + \param dump set to true if you like to dump the status if successful \return the ip that is assigned */ - MDMParser::IP join(const char* apn = NULL, const char* user = NULL, const char* password = NULL); + MDMParser::IP join(const char* apn = NULL, const char* username = NULL, const char* password = NULL); /** deregister (detach) the MT from the GPRS service. \return true if successful, false otherwise