Hardware Timer didnt work https://github.com/khoih-prog/ESP8266TimerInterrupt#why-using-isr-based-hardware-timer-interrupt-is-better
=> Software Timer https://ullisroboterseite.de/esp8266-timing.html#timer
#include <GDBStub.h>
...
void setup() {
Serial.begin(460800);
gdbstub_init();
GDB muss dafür compiled werden GDB-Version aus Arduino Toolchain hat Support
$ ./start_xtensa_gdb_stub.sh
Don`t forget \r
ESP-OTA wird von ufw oder Defender geblockt.
platform.ini
upload_flags =
--host-port <PORT>
...
$ sudo ufw allow tcp/<PORT>
server.streamFile(f, mime::getContentType(SRH::_path), requestMethod);
=====>
const String& p = SRH::_path;
if(p.endsWith(".gzip")) {
server.sendHeader("Content-Encoding", "gzip");
server.streamFile(f, mime::getContentType(p.substring(0, p.length()-5)), requestMethod);
}
else
server.streamFile(f, mime::getContentType(SRH::_path), requestMethod);
TODO:
TODO:
https://github.com/NachtRaveVL/PCA9685-Arduino/issues/15 PlatformIO Library veraltet !!
with streamFile gzip encoded Files can be sent this reduces space on fs ! new easier script needed to just convert to .gz maybe measure timings on ESP
=> use serveStatic because way simpler ! => serverStatic(“/”) works wonders
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARHRRHRGH Two implementations of FSM are not that good, linker puts them together ?!? :):):):):):):) => maybe investigate for doc
use logging to serial http monitor with httpserver.logt() -> is used for some status updates
behavior when someone enters stairway from opposite direction while animation is running? -> currently ignored, second persons walks in darkness -> animation from both sides? -> problem: person 1 leaving stairway might pass the sensor right after person 2 -> person 1 leaving not detected
behavior when someone enters stairway from opposite direction after animation finished but person 1 is still on stairway? -> currently stairs fade off from direction 1 -> additional wait-state between “warten hoch/runter” and “abdimmen hoch/runter” after sensor detected person?
active brightness can be lower than idle in the moment
change idle to precentage of active !!!