Connection Manager library for u-blox cellular modules. It manages the modem for keeping data connection always active.
Diff: CNLib.h
- Revision:
- 0:86284a262735
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CNLib.h Tue Jan 12 09:08:15 2016 +0000 @@ -0,0 +1,56 @@ +#pragma once + +#include "MDM.h" + +class CNLib : public MDMSerial { + +public: + CNLib() : MDMSerial() {}; + + /** Power on the modem + */ + int powerOnModem(); + + /** Inti the modem + */ + int initModem(); + + /** init the sim card + \simpin pin of the sim, NULL if no sim pin is used + */ + int simInit(const char* simpin); + + /** Get Sim Status + */ + int getSimInfo(); + + /** Get Network status info + */ + int getNetworkInfo(); + + /** Set module to auto registration + */ + int setNetAutoReg(); + + /** get Internal data context status + */ + int getInternalStatusContext(); + + /** Disable internal data Context + */ + int disableInternalContext(); + + /** + \return NetStatus + */ + NetStatus* getNet(){return &_net;} + + /** + \return DevStatus + */ + DevStatus* getDev(){return &_dev;} + + +protected: + static int _mcbCPIN(int type, const char* buf, int len, Sim* sim); +}; \ No newline at end of file