EnigmaIOT  0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
Public Member Functions | Protected Member Functions | List of all members
GatewayOutput_dummy Class Reference

#include <GwOutput_dummy.h>

Inheritance diagram for GatewayOutput_dummy:
GatewayOutput_generic

Public Member Functions

void configManagerStart (EnigmaIOTGatewayClass *enigmaIotGw)
 Called when wifi manager starts config portal. More...
 
void configManagerExit (bool status)
 Called when wifi manager exits config portal. More...
 
bool begin ()
 Starts output module. More...
 
bool loadConfig ()
 Loads output module configuration. More...
 
bool outputControlSend (char *address, uint8_t *data, size_t length)
 Send control data from nodes. More...
 
bool newNodeSend (char *address, uint16_t node_id)
 Send new node notification. More...
 
bool nodeDisconnectedSend (char *address, gwInvalidateReason_t reason)
 Send node disconnection notification. More...
 
bool outputDataSend (char *address, char *data, size_t length, GwOutput_data_type_t type=data)
 Send data from nodes. More...
 
void loop ()
 Should be called often for module management. More...
 
void setDlCallback (onDlData_t cb)
 Set data processing function. More...
 
- Public Member Functions inherited from GatewayOutput_generic
void setDlCallback (onDlData_t cb)
 Set data processing function. More...
 

Protected Member Functions

bool saveConfig ()
 Saves output module configuration. More...
 

Additional Inherited Members

- Public Attributes inherited from GatewayOutput_generic
String netName
 EnigmaIOT network name. More...
 
String clientId
 MQTT clientId. More...
 
String gwTopic
 MQTT topic for gateway. More...
 
- Protected Attributes inherited from GatewayOutput_generic
EnigmaIOTGatewayClassenigmaIotGateway
 Pointer to EnigmaIOT gateway instance. More...
 
onDlData_t downlinkCb
 downlink processing function handle More...
 

Detailed Description

Definition at line 21 of file GwOutput_dummy.h.

Member Function Documentation

◆ begin()

bool GatewayOutput_dummy::begin ( )
virtual

Starts output module.

Returns
Returns true if successful. false otherwise

Implements GatewayOutput_generic.

Definition at line 47 of file GwOutput_dummy.cpp.

◆ configManagerExit()

void GatewayOutput_dummy::configManagerExit ( bool  status)
virtual

Called when wifi manager exits config portal.

Parameters
statustrue if configuration was successful

Implements GatewayOutput_generic.

Definition at line 43 of file GwOutput_dummy.cpp.

◆ configManagerStart()

void GatewayOutput_dummy::configManagerStart ( EnigmaIOTGatewayClass enigmaIotGw)
virtual

Called when wifi manager starts config portal.

Parameters
enigmaIotGwPointer to EnigmaIOT gateway instance

Implements GatewayOutput_generic.

Definition at line 31 of file GwOutput_dummy.cpp.

◆ loadConfig()

bool GatewayOutput_dummy::loadConfig ( )
virtual

Loads output module configuration.

Returns
Returns true if load was successful. false otherwise

Implements GatewayOutput_generic.

Definition at line 39 of file GwOutput_dummy.cpp.

◆ loop()

void GatewayOutput_dummy::loop ( )
virtual

Should be called often for module management.

Implements GatewayOutput_generic.

Definition at line 53 of file GwOutput_dummy.cpp.

◆ newNodeSend()

bool GatewayOutput_dummy::newNodeSend ( char *  address,
uint16_t  node_id 
)
virtual

Send new node notification.

Parameters
addressNode Address
node_idNode Id
Returns
Returns true if sending was successful. false otherwise

Implements GatewayOutput_generic.

Definition at line 67 of file GwOutput_dummy.cpp.

◆ nodeDisconnectedSend()

bool GatewayOutput_dummy::nodeDisconnectedSend ( char *  address,
gwInvalidateReason_t  reason 
)
virtual

Send node disconnection notification.

Parameters
addressNode Address
reasonDisconnection reason code
Returns
Returns true if sending was successful. false otherwise

Implements GatewayOutput_generic.

Definition at line 72 of file GwOutput_dummy.cpp.

◆ outputControlSend()

bool GatewayOutput_dummy::outputControlSend ( char *  address,
uint8_t *  data,
size_t  length 
)
virtual

Send control data from nodes.

Parameters
addressNode Address
dataMessage data buffer
lengthData buffer length
Returns
Returns true if sending was successful. false otherwise

Implements GatewayOutput_generic.

Definition at line 62 of file GwOutput_dummy.cpp.

◆ outputDataSend()

bool GatewayOutput_dummy::outputDataSend ( char *  address,
char *  data,
size_t  length,
GwOutput_data_type_t  type = data 
)
virtual

Send data from nodes.

Parameters
addressNode Address
dataMessage data buffer
lengthData buffer length
typeType of message
Returns
Returns true if sending was successful. false otherwise

Implements GatewayOutput_generic.

Definition at line 57 of file GwOutput_dummy.cpp.

◆ saveConfig()

bool GatewayOutput_dummy::saveConfig ( )
protectedvirtual

Saves output module configuration.

Returns
Returns true if save was successful. false otherwise

Implements GatewayOutput_generic.

Definition at line 35 of file GwOutput_dummy.cpp.

◆ setDlCallback()

void GatewayOutput_dummy::setDlCallback ( onDlData_t  cb)
inline

Set data processing function.

Parameters
cbFunction handle

Definition at line 108 of file GwOutput_dummy.h.


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