AWS IoT Firmware
Firmware code for AWS IoT Devices
|
TempSensorHandler class, responsible for handling temperature sensor endpoint functionalities of aws. More...
#include <temp_sensor_handler.hpp>
Public Member Functions | |
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 More... | |
HandlerError | handleReport (char *stateReport) |
handle state report pertainting to temperature sensor endpoint for the pc controller The function will mesasure the temperature(using the TMP36 sensor for now) and put it in areport and write it to a buffer More... | |
Public Member Functions inherited from ParentHandler | |
HandlerError | createReport (char *report, const char *fmt, uint8_t totalArg,...) |
used for generating a json report string based on the format given, usually child handler uses this to prepare replies to the aws lambda server More... | |
bool | canHandleRequest (char *requestNameSpace) |
used to check if a handler object can handle a request with a specific namespace More... | |
char * | getNameSpace (void) |
return the command namespace that the handler support More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParentHandler | |
char | _nameSpace [MAX_NAMESPACE_LEN] |
namespace that the handler supports, all child classes must initialize this variable to let the master handler know which namespace it supports | |
TempSensorHandler class, responsible for handling temperature sensor endpoint functionalities of aws.