![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
MbedAgent.h
- Committer:
- xinlei
- Date:
- 2015-05-08
- Revision:
- 100:dbcd3bc51758
- Parent:
- 99:47ea098f8a47
- Child:
- 105:c61f0d62b625
File content as of revision 100:dbcd3bc51758:
#ifndef MBEDAGENT_H #define MBEDAGENT_H #include "SmartRest.h" #include "SmartRestTemplate.h" #include "DeviceInfo.h" #include "DeviceBootstrap.h" #include "DeviceIntegration.h" #include "Signal.h" #include "Temperature.h" #include "Location.h" #include "Potentiometer.h" #include "Acceleration.h" #include "ConfigSync.h" #include "OperationSupport.h" #include "SmartRestConf.h" #include "PollThread.h" #include "ReportThread.h" #include "LCDDisplay.h" const size_t N = 6; class MbedAgent { public: MbedAgent(DeviceInfo&); bool init(); int run(); void loop(); private: SmartRest _client; SmartRestTemplate tpl; DeviceBootstrap _bootstrap; DeviceIntegration _integration; bool lcdThirdLineBlank; Signal signal; Temperature temp; Potentiometer poti; Location gps; Acceleration acc; ConfigSync conf; char buf[SMARTREST_SIZE]; char buf2[SMARRESTBODY_SIZE]; char status[DISPLAY_LEN]; AbstractReporter *reporters[N]; SmartRestSocket sock; OperationPool pool; OperationSupport _operationSupport; }; #endif