ESPixelStick Firmware
Firmware for the ESPixelStick
|
#include <Arduino.h>
#include "ESPixelStick.h"
#include "EFUpdate.h"
#include <Int64String.h>
#include "input/InputMgr.hpp"
#include "output/OutputMgr.hpp"
#include "network/NetworkMgr.hpp"
#include "WebMgr.hpp"
#include "FileMgr.hpp"
#include "service/FPPDiscovery.h"
#include <TimeLib.h>
Macros | |
#define | NO_CONFIG_NEEDED time_t(-1) |
Functions | |
void | ScheduleLoadConfig () |
void | LoadConfig () |
Load configuration file. | |
void | GetConfig (JsonObject &json) |
void | GetDriverName (String &Name) |
void | TestHeap (uint32_t Id) |
Radio configuration. | |
void | setup () |
Arduino Setup. | |
bool | validateConfig () |
Configuration Validations. | |
bool | dsDevice (JsonObject &json) |
Deserialize device configuration JSON to config structure - returns true if config change detected. | |
void | SetConfig (const char *DataString) |
bool | deserializeCore (JsonObject &json) |
void | deserializeCoreHandler (JsonDocument &jsonDoc) |
void | SaveConfig () |
void | DeleteConfig () |
String | serializeCore (bool pretty) |
void | loop () |
Main Loop. | |
bool | RebootInProgress () |
void | RequestReboot (uint32_t LoopDelay, bool SkipDisable) |
void | _logcon (String &DriverName, String Message) |
void | FeedWDT () |
Variables | |
const String | VERSION = "4.x-dev" |
const String | ConfigFileName = "/config.json" |
const String | BUILD_DATE = String(__DATE__) + " - " + String(__TIME__) |
const uint8_t | CurrentConfigVersion = 1 |
config_t | config |
static const uint32_t | NotRebootingValue = uint32_t(-1) |
uint32_t | RebootCount = NotRebootingValue |
uint32_t | lastUpdate |
bool | ResetWiFi = false |
bool | IsBooting = true |
time_t | ConfigLoadNeeded = NO_CONFIG_NEEDED |
bool | ConfigSaveNeeded = false |
uint32_t | DiscardedRxData = 0 |
bool | ConsoleUartIsActive = true |
#define NO_CONFIG_NEEDED time_t(-1) |
void _logcon | ( | String & | DriverName, |
String | Message ) |
void DeleteConfig | ( | ) |
bool deserializeCore | ( | JsonObject & | json | ) |
void deserializeCoreHandler | ( | JsonDocument & | jsonDoc | ) |
bool dsDevice | ( | JsonObject & | json | ) |
Deserialize device configuration JSON to config structure - returns true if config change detected.
void FeedWDT | ( | ) |
void GetConfig | ( | JsonObject & | json | ) |
void GetDriverName | ( | String & | Name | ) |
void LoadConfig | ( | ) |
Load configuration file.
Loads and validates the JSON configuration file from the file system. If no configuration file is found, a new one will be created.
void loop | ( | ) |
Main Loop.
Arduino based main loop
bool RebootInProgress | ( | ) |
void RequestReboot | ( | uint32_t | LoopDelay, |
bool | SkipDisable ) |
void SaveConfig | ( | ) |
void ScheduleLoadConfig | ( | ) |
String serializeCore | ( | bool | pretty | ) |
void SetConfig | ( | const char * | DataString | ) |
void setup | ( | ) |
Arduino Setup.
Arduino based setup code that is executed at startup.
void TestHeap | ( | uint32_t | Id | ) |
Radio configuration.
ESP8266 radio configuration routines that are executed at startup.
bool validateConfig | ( | ) |
Configuration Validations.
Validates the config_t (core) configuration structure and forces defaults for invalid entries
const String BUILD_DATE = String(__DATE__) + " - " + String(__TIME__) |
config_t config |
const String ConfigFileName = "/config.json" |
time_t ConfigLoadNeeded = NO_CONFIG_NEEDED |
bool ConfigSaveNeeded = false |
bool ConsoleUartIsActive = true |
const uint8_t CurrentConfigVersion = 1 |
uint32_t DiscardedRxData = 0 |
bool IsBooting = true |
uint32_t lastUpdate |
|
static |
uint32_t RebootCount = NotRebootingValue |
bool ResetWiFi = false |
const String VERSION = "4.x-dev" |