EnigmaIOT  0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
Macros | Functions | Variables
EnigmaIOT-Led-Controller.cpp File Reference
#include <Arduino.h>
#include <EnigmaIOTjsonController.h>
#include <FailSafe.h>
#include "LedController.h"
#include <EnigmaIOTNode.h>
#include <espnow_hal.h>
#include <CayenneLPP.h>
#include <ArduinoJson.h>
#include <Curve25519.h>
#include <ESPAsyncWebServer.h>
#include <ESPAsyncWiFiManager.h>
#include <DNSServer.h>
#include <FS.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 (boolean 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 54 of file EnigmaIOT-Led-Controller.cpp.

◆ LED_BUILTIN

#define LED_BUILTIN   2

Definition at line 48 of file EnigmaIOT-Led-Controller.cpp.

◆ RESET_PIN

#define RESET_PIN   13

Definition at line 58 of file EnigmaIOT-Led-Controller.cpp.

◆ SLEEPY

#define SLEEPY   0

Definition at line 45 of file EnigmaIOT-Led-Controller.cpp.

◆ USE_SERIAL

#define USE_SERIAL

Definition at line 52 of file EnigmaIOT-Led-Controller.cpp.

Function Documentation

◆ connectEventHandler()

void connectEventHandler ( )

Definition at line 69 of file EnigmaIOT-Led-Controller.cpp.

◆ disconnectEventHandler()

void disconnectEventHandler ( nodeInvalidateReason_t  reason)

Definition at line 75 of file EnigmaIOT-Led-Controller.cpp.

◆ loop()

void loop ( )

Definition at line 169 of file EnigmaIOT-Led-Controller.cpp.

◆ processRxData()

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

Definition at line 91 of file EnigmaIOT-Led-Controller.cpp.

◆ sendUplinkData()

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

Definition at line 80 of file EnigmaIOT-Led-Controller.cpp.

◆ setup()

void setup ( )

Definition at line 109 of file EnigmaIOT-Led-Controller.cpp.

◆ wifiManagerExit()

void wifiManagerExit ( boolean  status)

Definition at line 100 of file EnigmaIOT-Led-Controller.cpp.

◆ wifiManagerStarted()

void wifiManagerStarted ( )

Definition at line 105 of file EnigmaIOT-Led-Controller.cpp.

Variable Documentation

◆ BOOT_FLAG_TIMEOUT

const time_t BOOT_FLAG_TIMEOUT = 10000

Definition at line 60 of file EnigmaIOT-Led-Controller.cpp.

◆ controller

Definition at line 56 of file EnigmaIOT-Led-Controller.cpp.

◆ FAILSAFE_RTC_ADDRESS

const int FAILSAFE_RTC_ADDRESS = 0

Definition at line 63 of file EnigmaIOT-Led-Controller.cpp.

◆ LED

const int LED = LED_BUILTIN

Definition at line 62 of file EnigmaIOT-Led-Controller.cpp.

◆ MAX_CONSECUTIVE_BOOT

const int MAX_CONSECUTIVE_BOOT = 3

Definition at line 61 of file EnigmaIOT-Led-Controller.cpp.