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 AccelerationMeasurement.h Source File

AccelerationMeasurement.h

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