EnigmaIOT  0.9.3
Secure sensor and gateway platform based on ESP8266 and ESP32
Macros | Functions | Variables
enigmaiot_led_flasher.ino File Reference

Node based on EnigmaIoT over ESP-NOW using non sleeping mode. Demonstrate clock synchronisation function. More...

#include <Arduino.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 LED_ON   LOW
 
#define LED_OFF   !LED_ON
 
#define LED_BUILTIN   2
 
#define BLUE_LED   LED_BUILTIN
 

Functions

void connectEventHandler ()
 
void disconnectEventHandler (nodeInvalidateReason_t reason)
 
void processRxData (const uint8_t *mac, const uint8_t *buffer, uint8_t length, nodeMessageType_t command, nodePayloadEncoding_t payloadEncoding)
 
void setup ()
 
void loop ()
 

Variables

constexpr auto RESET_PIN = -1
 

Detailed Description

Node based on EnigmaIoT over ESP-NOW using non sleeping mode. Demonstrate clock synchronisation function.

Version
0.9.3
Date
14/07/2020
Author
German Martin Sensor reading code is mocked on this example. You can implement any other code you need for your specific need

Definition in file enigmaiot_led_flasher.ino.

Macro Definition Documentation

◆ BLUE_LED

#define BLUE_LED   LED_BUILTIN

Definition at line 47 of file enigmaiot_led_flasher.ino.

◆ LED_BUILTIN

#define LED_BUILTIN   2

Definition at line 44 of file enigmaiot_led_flasher.ino.

◆ LED_OFF

#define LED_OFF   !LED_ON

Definition at line 41 of file enigmaiot_led_flasher.ino.

◆ LED_ON

#define LED_ON   LOW

Definition at line 40 of file enigmaiot_led_flasher.ino.

Function Documentation

◆ connectEventHandler()

void connectEventHandler ( )

Definition at line 53 of file enigmaiot_led_flasher.ino.

◆ disconnectEventHandler()

void disconnectEventHandler ( nodeInvalidateReason_t  reason)

Definition at line 57 of file enigmaiot_led_flasher.ino.

◆ loop()

void loop ( )

Definition at line 136 of file enigmaiot_led_flasher.ino.

◆ processRxData()

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

Definition at line 61 of file enigmaiot_led_flasher.ino.

◆ setup()

void setup ( )

Definition at line 100 of file enigmaiot_led_flasher.ino.

Variable Documentation

◆ RESET_PIN

constexpr auto RESET_PIN = -1
constexpr

Definition at line 47 of file enigmaiot_led_flasher.ino.