Base library for cellular modem implementations
Dependencies: Socket lwip-sys lwip
Dependents: CellularUSBModem CellularUSBModem
Deprecated
This is an mbed 2 networking library. For mbed 5, the networking libraries have been revised to better support additional network stacks and thread safety here.
Diff: link/LinkMonitor.h
- Revision:
- 7:0fd95907b5b3
- Parent:
- 5:9a57892f206c
diff -r 6e0ca3539adf -r 0fd95907b5b3 link/LinkMonitor.h --- a/link/LinkMonitor.h Tue Dec 17 15:23:32 2013 +0000 +++ b/link/LinkMonitor.h Tue Mar 04 10:00:52 2014 +0000 @@ -73,6 +73,11 @@ */ int getState(int* pRssi, REGISTRATION_STATE* pRegistrationState, BEARER* pBearer); + /** Get my phone number + @param phoneNumber pointer to store the current phoneNumber + @return 0 on success, error code on failure + */ + int getPhoneNumber(char* phoneNumber); protected: //IATCommandsProcessor virtual int onNewATResponseLine(ATCommandsInterface* pInst, const char* line); @@ -85,7 +90,7 @@ bool m_gsm; REGISTRATION_STATE m_registrationState; BEARER m_bearer; - + char m_phoneNumber[16]; }; #endif /* LINKMONITOR_H_ */