#include <EnigmaIOTjsonController.h>
Definition at line 28 of file EnigmaIOTjsonController.h.
◆ begin()
| virtual void EnigmaIOTjsonController::begin |
( |
void * |
config = NULL | ) |
|
|
pure virtual |
Initialize data structures.
- Parameters
-
| config | Pointer to configuration structure. If it is NULL then it tries to load configuration from flash |
◆ configManagerExit()
| virtual void EnigmaIOTjsonController::configManagerExit |
( |
bool |
status | ) |
|
|
pure virtual |
Called when wifi manager exits config portal.
- Parameters
-
| status | true if configuration was successful |
◆ configManagerStart()
Called when wifi manager starts config portal.
- Parameters
-
| enigmaIotNode | Pointer to EnigmaIOT node instance |
◆ loadConfig()
| virtual bool EnigmaIOTjsonController::loadConfig |
( |
| ) |
|
|
pure virtual |
Loads output module configuration.
- Returns
- Returns
true if load was successful. false otherwise
◆ loop()
| virtual void EnigmaIOTjsonController::loop |
( |
| ) |
|
|
pure virtual |
This should be called periodically for module handling.
◆ processRxCommand()
Called to process a downlink command.
- Parameters
-
| mac | Address of sender |
| buffer | Message bytes |
| length | Message length |
| command | Type of command. nodeMessageType_t |
| payloadEncoding | Payload encoding of type nodePayloadEncoding_t |
- Returns
true on success
◆ saveConfig()
| virtual bool EnigmaIOTjsonController::saveConfig |
( |
| ) |
|
|
protectedpure virtual |
Saves output module configuration.
- Returns
- Returns
true if save was successful. false otherwise
◆ sendCommandResp()
| virtual bool EnigmaIOTjsonController::sendCommandResp |
( |
const char * |
command, |
|
|
bool |
result |
|
) |
| |
|
protectedpure virtual |
Sends command processing response acknowledge.
- Parameters
-
| command | Command name |
| result | Command execution success |
- Returns
- Returns
true if message sending was successful. false otherwise
◆ sendDataCallback()
| void EnigmaIOTjsonController::sendDataCallback |
( |
sendData_cb |
cb | ) |
|
|
inline |
Register send data callback to run when module needs to send a message.
- Parameters
-
| cb | Callback with sendData_cb format |
Definition at line 61 of file EnigmaIOTjsonController.h.
◆ sendJson()
| bool EnigmaIOTjsonController::sendJson |
( |
DynamicJsonDocument & |
json | ) |
|
|
inlineprotected |
Sends a JSON encoded message to lower layer.
- Returns
- Returns
true if message sending was successful. false otherwise
Definition at line 109 of file EnigmaIOTjsonController.h.
◆ sendStartAnouncement()
| virtual bool EnigmaIOTjsonController::sendStartAnouncement |
( |
| ) |
|
|
protectedpure virtual |
Send a message to notify node has started running.
- Returns
- Returns
true if message sending was successful. false otherwise
◆ enigmaIotNode
◆ sendData
| sendData_cb EnigmaIOTjsonController::sendData |
|
protected |
The documentation for this class was generated from the following file: