EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
#include <Arduino.h>
#include <EnigmaIOTjsonController.h>
#include <FailSafe.h>
#include "ds18b20Controller.h"
#include <OneWire.h>
#include <DallasTemperature.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 1 |
#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 | |
EnigmaIOTjsonController * | controller |
const time_t | BOOT_FLAG_TIMEOUT = 10000 |
const int | MAX_CONSECUTIVE_BOOT = 3 |
const int | LED = LED_BUILTIN |
const int | FAILSAFE_RTC_ADDRESS = 0 |
const int | SLEEP_TIME = 10 |
#define BLUE_LED LED_BUILTIN |
Definition at line 58 of file EnigmaIOT-Sensor-Controller.cpp.
#define LED_BUILTIN 2 |
Definition at line 52 of file EnigmaIOT-Sensor-Controller.cpp.
#define RESET_PIN 13 |
Definition at line 62 of file EnigmaIOT-Sensor-Controller.cpp.
#define SLEEPY 1 |
Definition at line 49 of file EnigmaIOT-Sensor-Controller.cpp.
#define USE_SERIAL |
Definition at line 56 of file EnigmaIOT-Sensor-Controller.cpp.
void connectEventHandler | ( | ) |
Definition at line 73 of file EnigmaIOT-Sensor-Controller.cpp.
void disconnectEventHandler | ( | nodeInvalidateReason_t | reason | ) |
Definition at line 79 of file EnigmaIOT-Sensor-Controller.cpp.
void loop | ( | ) |
Definition at line 175 of file EnigmaIOT-Sensor-Controller.cpp.
void processRxData | ( | const uint8_t * | mac, |
const uint8_t * | buffer, | ||
uint8_t | length, | ||
nodeMessageType_t | command, | ||
nodePayloadEncoding_t | payloadEncoding | ||
) |
Definition at line 95 of file EnigmaIOT-Sensor-Controller.cpp.
bool sendUplinkData | ( | const uint8_t * | data, |
size_t | len, | ||
nodePayloadEncoding_t | payloadEncoding, | ||
dataMessageType_t | dataMsgType | ||
) |
Definition at line 84 of file EnigmaIOT-Sensor-Controller.cpp.
void setup | ( | ) |
Definition at line 113 of file EnigmaIOT-Sensor-Controller.cpp.
void wifiManagerExit | ( | boolean | status | ) |
Definition at line 104 of file EnigmaIOT-Sensor-Controller.cpp.
void wifiManagerStarted | ( | ) |
Definition at line 109 of file EnigmaIOT-Sensor-Controller.cpp.
const time_t BOOT_FLAG_TIMEOUT = 10000 |
Definition at line 64 of file EnigmaIOT-Sensor-Controller.cpp.
EnigmaIOTjsonController* controller |
Definition at line 60 of file EnigmaIOT-Sensor-Controller.cpp.
const int FAILSAFE_RTC_ADDRESS = 0 |
Definition at line 67 of file EnigmaIOT-Sensor-Controller.cpp.
const int LED = LED_BUILTIN |
Definition at line 66 of file EnigmaIOT-Sensor-Controller.cpp.
const int MAX_CONSECUTIVE_BOOT = 3 |
Definition at line 65 of file EnigmaIOT-Sensor-Controller.cpp.
const int SLEEP_TIME = 10 |
Definition at line 69 of file EnigmaIOT-Sensor-Controller.cpp.