C027_Support library test
Diff: MDM.h
- Revision:
- 120:0e718a4ea25e
- Parent:
- 117:74e4e0109a9e
- Child:
- 124:65eb7d58f2da
diff -r db878a234544 -r 0e718a4ea25e MDM.h --- a/MDM.h Thu Mar 12 17:10:17 2015 +0000 +++ b/MDM.h Wed Jul 01 13:21:31 2015 +0000 @@ -108,6 +108,11 @@ bool init(const char* simpin = NULL, DevStatus* status = NULL, PinName pn MDM_IF( = MDMPWRON, = D4)); + /** get the current device status + \param strocture holding the device information. + */ + void getDevStatus(MDMParser::DevStatus* dev) { memcpy(dev, &_dev, sizeof(DevStatus)); } + /** register to the network \param status an optional structure to with network information \param timeout_ms -1 blocking, else non blocking timeout in ms @@ -152,6 +157,11 @@ */ MDMParser::IP gethostbyname(const char* host); + /** get the current assigned IP address + \return the ip that is assigned + */ + MDMParser::IP getIpAddress(void) { return _ip; } + // ---------------------------------------------------------------- // Sockets // ----------------------------------------------------------------