EnigmaIOT  0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
Macros | Functions | Variables
EnigmaIOT-Button-Controller.cpp File Reference
#include <Arduino.h>
#include <EnigmaIOTjsonController.h>
#include <FailSafe.h>
#include "ButtonController.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>

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   5
 

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 49 of file EnigmaIOT-Button-Controller.cpp.

◆ LED_BUILTIN

#define LED_BUILTIN   2

Definition at line 43 of file EnigmaIOT-Button-Controller.cpp.

◆ RESET_PIN

#define RESET_PIN   5

Definition at line 53 of file EnigmaIOT-Button-Controller.cpp.

◆ SLEEPY

#define SLEEPY   0

Definition at line 40 of file EnigmaIOT-Button-Controller.cpp.

◆ USE_SERIAL

#define USE_SERIAL

Definition at line 47 of file EnigmaIOT-Button-Controller.cpp.

Function Documentation

◆ connectEventHandler()

void connectEventHandler ( )

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

◆ disconnectEventHandler()

void disconnectEventHandler ( nodeInvalidateReason_t  reason)

Definition at line 67 of file EnigmaIOT-Button-Controller.cpp.

◆ loop()

void loop ( )

Definition at line 157 of file EnigmaIOT-Button-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 83 of file EnigmaIOT-Button-Controller.cpp.

◆ sendUplinkData()

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

Definition at line 72 of file EnigmaIOT-Button-Controller.cpp.

◆ setup()

void setup ( )

Definition at line 101 of file EnigmaIOT-Button-Controller.cpp.

◆ wifiManagerExit()

void wifiManagerExit ( boolean  status)

Definition at line 92 of file EnigmaIOT-Button-Controller.cpp.

◆ wifiManagerStarted()

void wifiManagerStarted ( )

Definition at line 97 of file EnigmaIOT-Button-Controller.cpp.

Variable Documentation

◆ BOOT_FLAG_TIMEOUT

const time_t BOOT_FLAG_TIMEOUT = 10000

Definition at line 55 of file EnigmaIOT-Button-Controller.cpp.

◆ controller

Definition at line 51 of file EnigmaIOT-Button-Controller.cpp.

◆ FAILSAFE_RTC_ADDRESS

const int FAILSAFE_RTC_ADDRESS = 0

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

◆ LED

const int LED = LED_BUILTIN

Definition at line 57 of file EnigmaIOT-Button-Controller.cpp.

◆ MAX_CONSECUTIVE_BOOT

const int MAX_CONSECUTIVE_BOOT = 3

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