![](/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-13
- Revision:
- 107:f1ee3e1eb126
- Parent:
- 105:c61f0d62b625
- Child:
- 116:5de54f09f754
File content as of revision 107:f1ee3e1eb126:
#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