EnigmaIOT  0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
Macros | Functions | Variables
EnigmaIOT-Json-Controller-Template.cpp File Reference
#include <Arduino.h>
#include <EnigmaIOTjsonController.h>
#include <FailSafe.h>
#include "BasicController.h"
#include <EnigmaIOTNode.h>
#include <espnow_hal.h>
#include <ArduinoJson.h>

Go to the source code of this file.

Macros

#define SLEEPY   0
 
#define LED_BUILTIN   2
 
#define USE_SERIAL
 
#define BLUE_LED   LED_BUILTIN
 
#define RESET_PIN   13
 

Functions

void connectEventHandler ()
 
void disconnectEventHandler (nodeInvalidateReason_t reason)
 
bool sendUplinkData (const uint8_t *data, size_t len, nodePayloadEncoding_t payloadEncoding, dataMessageType_t dataMsgType)
 
void processRxData (const uint8_t *mac, const uint8_t *buffer, uint8_t length, nodeMessageType_t command, nodePayloadEncoding_t payloadEncoding)
 
void wifiManagerExit (bool status)
 
void wifiManagerStarted ()
 
void setup ()
 
void loop ()
 

Variables

EnigmaIOTjsonControllercontroller
 
const time_t BOOT_FLAG_TIMEOUT = 10000
 
const int MAX_CONSECUTIVE_BOOT = 3
 
const int LED = LED_BUILTIN
 
const int FAILSAFE_RTC_ADDRESS = 0
 

Macro Definition Documentation

◆ BLUE_LED

#define BLUE_LED   LED_BUILTIN

Definition at line 47 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ LED_BUILTIN

#define LED_BUILTIN   2

Definition at line 41 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ RESET_PIN

#define RESET_PIN   13

Definition at line 51 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ SLEEPY

#define SLEEPY   0

Definition at line 37 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ USE_SERIAL

#define USE_SERIAL

Definition at line 45 of file EnigmaIOT-Json-Controller-Template.cpp.

Function Documentation

◆ connectEventHandler()

void connectEventHandler ( )

Definition at line 62 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ disconnectEventHandler()

void disconnectEventHandler ( nodeInvalidateReason_t  reason)

Definition at line 68 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ loop()

void loop ( )

Definition at line 162 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ processRxData()

void processRxData ( const uint8_t *  mac,
const uint8_t *  buffer,
uint8_t  length,
nodeMessageType_t  command,
nodePayloadEncoding_t  payloadEncoding 
)

Definition at line 84 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ sendUplinkData()

bool sendUplinkData ( const uint8_t *  data,
size_t  len,
nodePayloadEncoding_t  payloadEncoding,
dataMessageType_t  dataMsgType 
)

Definition at line 73 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ setup()

void setup ( )

Definition at line 102 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ wifiManagerExit()

void wifiManagerExit ( bool  status)

Definition at line 93 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ wifiManagerStarted()

void wifiManagerStarted ( )

Definition at line 98 of file EnigmaIOT-Json-Controller-Template.cpp.

Variable Documentation

◆ BOOT_FLAG_TIMEOUT

const time_t BOOT_FLAG_TIMEOUT = 10000

Definition at line 53 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ controller

Definition at line 49 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ FAILSAFE_RTC_ADDRESS

const int FAILSAFE_RTC_ADDRESS = 0

Definition at line 56 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ LED

const int LED = LED_BUILTIN

Definition at line 55 of file EnigmaIOT-Json-Controller-Template.cpp.

◆ MAX_CONSECUTIVE_BOOT

const int MAX_CONSECUTIVE_BOOT = 3

Definition at line 54 of file EnigmaIOT-Json-Controller-Template.cpp.