|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
13 #include <ESPAsyncWebServer.h>
19 #include "esp_system.h"
20 #include "esp_event.h"
22 #elif defined(ESP8266)
58 DEBUG_WARN (
"Output data send. Address %s. Data %.*s", address, length,
data);
63 DEBUG_INFO (
"Output control send. Address %s. Data %s", address,
printHexBuffer (
data, length));
68 DEBUG_WARN (
"New node: %s NodeID: %d", address, node_id);
73 DEBUG_WARN (
"Node %s disconnected. Reason %d", address, reason);
bool loadConfig()
Loads output module configuration.
void configManagerStart(EnigmaIOTGatewayClass *enigmaIotGw)
Called when wifi manager starts config portal.
Main gateway class. Manages communication with nodes and sends data to upper layer.
bool nodeDisconnectedSend(char *address, gwInvalidateReason_t reason)
Send node disconnection notification.
GatewayOutput_dummy GwOutput
bool begin()
Starts output module.
char * printHexBuffer(const uint8_t *buffer, uint16_t len)
Debug helper function that generates a string that represent a buffer hexadecimal values.
void loop()
Should be called often for module management.
bool saveConfig()
Saves output module configuration.
bool newNodeSend(char *address, uint16_t node_id)
Send new node notification.
enum GwOutput_data_type GwOutput_data_type_t
bool outputControlSend(char *address, uint8_t *data, size_t length)
Send control data from nodes.
void configManagerExit(bool status)
Called when wifi manager exits config portal.
Auxiliary function definition.
bool outputDataSend(char *address, char *data, size_t length, GwOutput_data_type_t type=data)
Send data from nodes.
gwInvalidateReason_t
Key invalidation reason definition.
Auxiliary functions for debugging over Serial.
Dummy Gateway output module.