AWS IoT Firmware
Firmware code for AWS IoT Devices
Public Member Functions | Protected Attributes | List of all members
ParentHandler Class Referenceabstract

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>

Inheritance diagram for ParentHandler:
Inheritance graph
[legend]

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
 

Detailed Description

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


The documentation for this class was generated from the following files: