Commit d0c32222 authored by Eric Duminil's avatar Eric Duminil
Browse files

Notes

parent bb2a7027
...@@ -19,7 +19,7 @@ namespace ntp { ...@@ -19,7 +19,7 @@ namespace ntp {
Serial.print("NTP - Trying to connect to : "); Serial.print("NTP - Trying to connect to : ");
Serial.println(config::ntp_server); Serial.println(config::ntp_server);
timeClient.begin(); timeClient.begin();
sensor_console::defineIntCommand("set_time", ntp::setLocalTime, F("1618829570 (Sets time to the given UNIX time)")); sensor_console::defineIntCommand("set_time", ntp::setLocalTime, F("1618829570 (Sets time to the given UNIX time)")); //TODO: Define even without internet
} }
void update() { void update() {
......
#ifndef AMPEL_WEB_CONFIG_H_ #ifndef AMPEL_WEB_CONFIG_H_
#define AMPEL_WEB_CONFIG_H_ #define AMPEL_WEB_CONFIG_H_
#define STRING_LEN 64 #define STRING_LEN 64 //TODO: Shorter?
#if defined(ESP8266) #if defined(ESP8266)
# include <ESP8266WebServer.h> # include <ESP8266WebServer.h>
...@@ -32,7 +32,7 @@ namespace config { ...@@ -32,7 +32,7 @@ namespace config {
extern bool &daylight_saving_time; // [true / false] extern bool &daylight_saving_time; // [true / false]
//CSV //CSV
bool csv_active(); bool csv_active(); //TODO: Find better names?
extern uint16_t &csv_interval; // [s] extern uint16_t &csv_interval; // [s]
// MQTT // MQTT
...@@ -56,7 +56,6 @@ namespace web_config { ...@@ -56,7 +56,6 @@ namespace web_config {
void setWifiConnectionCallback(void (*success_function)()); void setWifiConnectionCallback(void (*success_function)());
void setWifiFailCallback(void (*fail_function)()); void setWifiFailCallback(void (*fail_function)());
void update(); void update();
//TODO: Add saveConfig(), for e.g. after custom setters. Or simply reset after each configchange?
#if defined(ESP8266) #if defined(ESP8266)
extern ESP8266WebServer http; extern ESP8266WebServer http;
......
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
#include "mqtt.h" #include "mqtt.h"
#include "lorawan.h" #include "lorawan.h"
#include <IotWebConf.h>
#include <IotWebConfUsing.h> // This loads aliases for easier class names.
#include <IotWebConfTParameter.h>
#if defined(ESP8266) #if defined(ESP8266)
# include <ESP8266WebServer.h> # include <ESP8266WebServer.h>
#elif defined(ESP32) #elif defined(ESP32)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment