AWS IoT Firmware
Firmware code for AWS IoT Devices
temp_sensor_handler.hpp
Go to the documentation of this file.
1 
15 #ifndef _TEMP_SENSOR_HANDLER_HPP
16 #define _TEMP_SENSOR_HANDLER_HPP
17 
18 #include "parent_handler.hpp"
19 
20 #include "event_handler_util.hpp"
21 
22 #include "frozen.h"
23 #include "mgos.h"
24 #include "mgos_mqtt.h"
25 
32  public:
33  TempSensorHandler(void);
34  HandlerError handleRequest(struct mg_connection* mgCon,
35  struct mg_str* message,
36  char* commandName,
37  char* response);
38  HandlerError handleReport(char* stateReport);
39 
40  ~TempSensorHandler(void) {}
41 
42  private:
43 };
44 
45 #endif
46 
TempSensorHandler class, responsible for handling temperature sensor endpoint functionalities of aws...
Definition: temp_sensor_handler.hpp:31
header file for event handler utils
HandlerError handleRequest(struct mg_connection *mgCon, struct mg_str *message, char *commandName, char *response)
handle aws request pertainting to temperature sensor endpoint for the pc controller ...
Definition: temp_sensor_handler.cpp:47
HandlerError handleReport(char *stateReport)
handle state report pertainting to temperature sensor endpoint for the pc controller The function wil...
Definition: temp_sensor_handler.cpp:65
contain class declaration for the ParentHandler class
HandlerError
enum defining errors that the system(including master handler and other child handler) may have ...
Definition: event_handler_util.hpp:37
the parent handler class that is the blueprint for other child handlers to implement, it also defines a couple functions that child handler can use
Definition: parent_handler.hpp:31