![](/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:
- 2016-08-08
- Revision:
- 138:f8ab852e83e7
- Parent:
- 116:5de54f09f754
File content as of revision 138:f8ab852e83e7:
#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; char buf[SMARTREST_SIZE]; char buf2[SMARTREST_BODY_SIZE]; char status[DISPLAY_LEN]; AbstractReporter *reporters[N]; SmartRestSocket sock; OperationPool pool; OperationSupport _operationSupport; }; #endif