Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Signal.h
00001 #ifndef SIGNAL_H 00002 #define SIGNAL_H 00003 #include "mbed.h" 00004 #include "DeviceInfo.h" 00005 #include "AbstractReporter.h" 00006 00007 00008 class Signal: public AbstractReporter 00009 { 00010 public: 00011 Signal(DeviceInfo& d): deviceInfo(d), timer() { 00012 oldValues[0] = 0; 00013 oldValues[1] = 0; 00014 timer.start(); 00015 } 00016 virtual ~Signal() {} 00017 virtual bool init() { return true; } 00018 virtual const char* name() const { return "dBm"; } 00019 virtual int read(char*, size_t, char*, size_t); 00020 private: 00021 int oldValues[2]; 00022 DeviceInfo& deviceInfo; 00023 Timer timer; 00024 }; 00025 00026 #endif /* SIGNAL_H */
Generated on Wed Jul 13 2022 19:40:51 by 1.7.2