|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
16 #if defined(ARDUINO) && ARDUINO >= 100
89 virtual bool newNodeSend (
char* address, uint16_t node_id) = 0;
123 #endif // _GWOUT_GEN_h
Main gateway class. Manages communication with nodes and sends data to upper layer.
virtual bool outputControlSend(char *address, uint8_t *data, size_t length)=0
Send control data from nodes.
virtual bool nodeDisconnectedSend(char *address, gwInvalidateReason_t reason)=0
Send node disconnection notification.
virtual bool newNodeSend(char *address, uint16_t node_id)=0
Send new node notification.
onDlData_t downlinkCb
downlink processing function handle
virtual void configManagerStart(EnigmaIOTGatewayClass *enigmaIotGw)=0
Called when wifi manager starts config portal.
std::function< void(uint8_t *address, char *nodeName, control_message_type_t msgType, char *data, unsigned int len)> onDlData_t
virtual void configManagerExit(bool status)=0
Called when wifi manager exits config portal.
virtual bool begin()=0
Starts output module.
enum GwOutput_data_type GwOutput_data_type_t
String clientId
MQTT clientId.
virtual bool loadConfig()=0
Loads output module configuration.
virtual void loop()=0
Should be called often for module management.
String gwTopic
MQTT topic for gateway.
EnigmaIOTGatewayClass * enigmaIotGateway
Pointer to EnigmaIOT gateway instance.
void setDlCallback(onDlData_t cb)
Set data processing function.
virtual bool saveConfig()=0
Saves output module configuration.
String netName
EnigmaIOT network name.
virtual bool outputDataSend(char *address, char *data, size_t length, GwOutput_data_type_t type=data)=0
Send data from nodes.
Library to build a gateway for EnigmaIoT system.
gwInvalidateReason_t
Key invalidation reason definition.
enum control_message_type control_message_type_t