AWS IoT Firmware
Firmware code for AWS IoT Devices
|
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 More...
#include <parent_handler.hpp>
Public Member Functions | |
virtual HandlerError | handleRequest (struct mg_connection *mgCon, struct mg_str *message, char *commandName, char *response)=0 |
virtual HandlerError | handleReport (char *stateReport)=0 |
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... | |
Protected Attributes | |
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 | |
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