Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
MbedAgent.h
00001 #ifndef MBEDAGENT_H 00002 #define MBEDAGENT_H 00003 00004 #include "SmartRest.h" 00005 #include "SmartRestTemplate.h" 00006 #include "DeviceInfo.h" 00007 #include "DeviceBootstrap.h" 00008 #include "DeviceIntegration.h" 00009 00010 #include "Signal.h" 00011 #include "Temperature.h" 00012 #include "Location.h" 00013 #include "Potentiometer.h" 00014 #include "Acceleration.h" 00015 #include "ConfigSync.h" 00016 00017 #include "OperationSupport.h" 00018 #include "SmartRestConf.h" 00019 #include "PollThread.h" 00020 #include "ReportThread.h" 00021 #include "LCDDisplay.h" 00022 00023 const size_t N = 6; 00024 00025 class MbedAgent 00026 { 00027 public: 00028 MbedAgent(DeviceInfo&); 00029 00030 bool init(); 00031 int run(); 00032 void loop(); 00033 00034 private: 00035 SmartRest client; 00036 SmartRestTemplate tpl; 00037 DeviceBootstrap _bootstrap; 00038 DeviceIntegration _integration; 00039 bool lcdThirdLineBlank; 00040 Signal signal; 00041 Temperature temp; 00042 Potentiometer poti; 00043 Location gps; 00044 Acceleration acc; 00045 char buf[SMARTREST_SIZE]; 00046 char buf2[SMARTREST_BODY_SIZE]; 00047 char status[DISPLAY_LEN]; 00048 AbstractReporter *reporters[N]; 00049 SmartRestSocket sock; 00050 OperationPool pool; 00051 OperationSupport _operationSupport; 00052 }; 00053 00054 #endif
Generated on Sat Jul 16 2022 07:10:59 by 1.7.2