AWS IoT Firmware
Firmware code for AWS IoT Devices
|
folder carrying utils functions that are helpful either to the master handler or to the child handler More...
#include "event_handler_util.hpp"
#include "mgos.h"
#include "mgos_mqtt.h"
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
Functions | |
HandlerError | create_error_message (const HandlerError error, struct mg_str *payload, char *errorMessage) |
create error message based on the error code given and stores it in the given buffer More... | |
HandlerError | write_pin (const uint8_t pinNum, const uint8_t pinState) |
used for writing to a digital pin given its pin number and state More... | |
HandlerError | read_pin (const uint8_t pinNum, uint8_t *pinState) |
used to reat the status of a digital pin More... | |
HandlerError | getCommandInfo (struct mg_str *message, char *commandName, char *nameSpace) |
get command name as well as command namespace of messages sent from aws lambda More... | |
HandlerError | getAwsPayload (const struct mg_str *message, const char *awsPayloadFormat, const uint8_t &totalArg,...) |
Get the Aws Payload json key. More... | |
HandlerError | printStateReportOpen (char *jsonOut) |
print the beginning of an aws smarthome state report More... | |
HandlerError | printStateReportDelimiter (char *jsonOut) |
print the delimiter between endpoints reports in aws iot state report More... | |
HandlerError | printStateReportEnd (char *jsonOut) |
print the ending part of an aws iot state report More... | |
folder carrying utils functions that are helpful either to the master handler or to the child handler
The folder implements important things like error message creation, aws state report printing helper function