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-07
- Revision:
- 99:47ea098f8a47
- Parent:
- 98:e369fc75c000
- Child:
- 100:dbcd3bc51758
File content as of revision 99:47ea098f8a47:
#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" 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 line[DISPLAY_LEN]; AbstractReporter *reporters[N]; SmartRestSock sock; OperationPool pool; OperationSupport _operationSupport; }; #endif