Library to build a gateway for EnigmaIoT system.
More...
#include "EnigmaIOTGateway.h"
#include <FS.h>
#include "libb64/cdecode.h"
#include <ArduinoJson.h>
#include "cryptModule.h"
#include "helperFunctions.h"
#include <cstddef>
#include <cstdint>
#include <regex>
#include "haEntity.h"
#include "haBinarySensor.h"
#include "haCover.h"
#include "haSensor.h"
#include "haSwitch.h"
#include "haTrigger.h"
Go to the source code of this file.
|
| const void * | memstr (const void *str, size_t str_size, const char *target, size_t target_size) |
| |
| bool | buildGetVersion (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildGetSleep (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildSetIdentify (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildGetRSSI (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildGetName (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildSetName (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildSetResetConfig (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildRestartNode (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildSendBrcastKey (uint8_t *data, size_t &dataLen, const uint8_t *key, size_t keyLen) |
| |
| int | getNextNumber (char *&data, size_t &len) |
| |
| bool | isHexChar (char c) |
| |
| bool | buildOtaMsg (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
| bool | buildSetSleep (uint8_t *data, size_t &dataLen, const uint8_t *inputData, size_t inputLen) |
| |
Library to build a gateway for EnigmaIoT system.
- Version
- 0.9.8
- Date
- 15/07/2021
- Author
- German Martin
Definition in file EnigmaIOTGateway.cpp.
◆ CHMSG_LEN
| #define CHMSG_LEN sizeof(clientHello_msg) |
◆ IKMSG_LEN
| #define IKMSG_LEN sizeof(invalidateKey_msg) |
◆ SHMSG_LEN
| #define SHMSG_LEN sizeof(serverHello_msg) |
◆ buildGetName()
| bool buildGetName |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildGetRSSI()
| bool buildGetRSSI |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildGetSleep()
| bool buildGetSleep |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildGetVersion()
| bool buildGetVersion |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildOtaMsg()
| bool buildOtaMsg |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildRestartNode()
| bool buildRestartNode |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildSendBrcastKey()
| bool buildSendBrcastKey |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
key, |
|
|
size_t |
keyLen |
|
) |
| |
◆ buildSetIdentify()
| bool buildSetIdentify |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildSetName()
| bool buildSetName |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildSetResetConfig()
| bool buildSetResetConfig |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ buildSetSleep()
| bool buildSetSleep |
( |
uint8_t * |
data, |
|
|
size_t & |
dataLen, |
|
|
const uint8_t * |
inputData, |
|
|
size_t |
inputLen |
|
) |
| |
◆ getNextNumber()
| int getNextNumber |
( |
char *& |
data, |
|
|
size_t & |
len |
|
) |
| |
◆ isHexChar()
◆ memstr()
| const void* memstr |
( |
const void * |
str, |
|
|
size_t |
str_size, |
|
|
const char * |
target, |
|
|
size_t |
target_size |
|
) |
| |
◆ CONFIG_FILE
| const char CONFIG_FILE[] = "/config.json" |
◆ EnigmaIOTGateway
◆ lastOTAmsg
◆ OTAongoing
◆ shouldSave