ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

doku.md 1.4KB

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

Zum aktivieren von GDBStub:

#include <GDBStub.h>

...

void setup() {
  Serial.begin(460800);
  gdbstub_init();

Achtung !

GDB muss dafür compiled werden GDB-Version aus Arduino Toolchain hat Support

$ ./start_xtensa_gdb_stub.sh

Achtung !

Don`t forget \r

ESP-OTA wird von ufw oder Defender geblockt.

  • Windows -> Python needs to be granted with rights
  • Linux -> open udp port in ufw ->
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);

Webserver on v0.3.0 now working with LittleFS TODO:

  • check dir for files automatic
  • move handleNotFound to httpserver.h
  • maybe compress files ?

LED Flickering issue https://github.com/NachtRaveVL/PCA9685-Arduino/issues/15

PlatformIO Library veraltet

TIMER in OTA unterbrechen !!!!!