![](/media/cache/group/u-blox_logo_trans.png.50x50_q85.png)
portable version of the cumulocity demo
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
DeviceInfo.h
- Committer:
- ublox
- Date:
- 2014-10-03
- Revision:
- 56:2da813cc2f47
- Parent:
- 41:804f6a0bda26
File content as of revision 56:2da813cc2f47:
#ifndef DEVICEINFO_H #define DEVICEINFO_H #include <stddef.h> #include <stdint.h> #include "MDM.h" class DeviceInfo { public: DeviceInfo(MDMSerial& mdm, MDMParser::DevStatus& devStatus); typedef struct { int rssi; // RSSI in dBm int ber; // BER in % } SignalQuality; const char * imsi(); const char * imei(); const char * cellId(); const char * iccid(); SignalQuality * signalQuality(); protected: bool refreshNetStatus(); private: MDMSerial& _mdm; MDMParser::DevStatus _devStatus; MDMParser::NetStatus _netStatus; char _cellId[9]; SignalQuality _signalQuality; }; #endif