AWS IoT Firmware
Firmware code for AWS IoT Devices
|
header file for master handler class More...
#include "event_handler_util.hpp"
#include "parent_handler.hpp"
#include "frozen.h"
#include "mgos.h"
#include "mgos_mqtt.h"
Go to the source code of this file.
Macros | |
#define | MAX_PAYLOAD_SIZE 150 |
Maximum characters that the payload received by the mqtt will have. | |
#define | MAX_RESPONSE_LEN 1500 |
Maximum length in character of the response. | |
Functions | |
void | handleAwsRequest (struct mg_connection *mgCon, struct mg_str *payload, char *jsonBuf, ParentHandler *_handlerList[]) |
function used for finding the appropriate handler and hands the request to them or create error message to report to the server More... | |
void | handleAllReq (struct mg_connection *mgCon, int eventType, void *rawMessage, void *user_data) |
The entry point of all events, when an mcu receives an event, whether it's a request from aws or just a confirmation from the mqtt server, it is triaged here. More... | |
void | handlePolling (struct mg_connection *mgCon, ParentHandler *handlerList[], char *jsonBuf) |
dummy empty function since bed room light controller has no polling need More... | |
header file for master handler class