portable version of the cumulocity demo

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AnalogMeasurement.h Source File

AnalogMeasurement.h

00001 #ifndef ANALOGMEASUREMENT_H
00002 #define ANALOGMEASUREMENT_H
00003 
00004 #include "SmartRest.h"
00005 #include "SmartRestTemplate.h"
00006 #include "mbed.h"
00007 
00008 class AnalogMeasurement
00009 {
00010 public:
00011     AnalogMeasurement(SmartRest&, SmartRestTemplate&, long&, AnalogIn&, AnalogIn&);
00012     
00013     bool init();
00014     bool run();
00015 
00016 private:
00017     bool _init;
00018     long& _deviceId;
00019     SmartRestTemplate& _tpl;
00020     SmartRest& _client;
00021     AnalogIn& _analog1;
00022     AnalogIn& _analog2;
00023 };
00024 
00025 #endif