ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
Go to file
2021-06-28 15:49:07 +02:00
.vscode move http and ota to lib/ for testing, add #pragma once include guards 2021-06-26 07:33:12 +02:00
data much simpler callback approach due to serveStatic with directories !!! 2021-06-27 01:56:30 +02:00
include move http and ota to lib/ for testing, add #pragma once include guards 2021-06-26 07:33:12 +02:00
lib merged treppe.cpp 2021-06-28 15:49:07 +02:00
scripts debugging support :) over gdbstub 2021-06-22 20:25:27 +02:00
src further improvments, [this] in lambda fcn callback, compressed gz webfiles via streamFile() 2021-06-26 09:21:34 +02:00
test moved files, this in on callback for httpserver class 2021-06-26 09:02:55 +02:00
.gitignore modify script for new way of serving gz files 2021-06-26 09:33:37 +02:00
.gitmodules added lib submodule 2021-06-24 18:38:30 +02:00
create_gz_c_arr.py modify script for new way of serving gz files 2021-06-26 09:33:37 +02:00
create_gz_files.py modify script for new way of serving gz files 2021-06-26 09:33:37 +02:00
doku.md update templ.ini and doku 2021-06-27 02:01:25 +02:00
README.md debugging support :) over gdbstub 2021-06-22 20:25:27 +02:00
start_xtensa_gdb_stub.sh debugging support :) over gdbstub 2021-06-22 20:25:27 +02:00
templ_platformio_ini update templ.ini and doku 2021-06-27 02:01:25 +02:00
webtest.cmd delete unnecessary files 2021-06-23 16:18:54 +02:00
webtest.sh delete unnecessary files 2021-06-23 16:18:54 +02:00

Steps to run it

https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html

create "include/wifi_credentials.h"
#ifndef __WIFI_CREDENTIALS_H
#define __WIFI_CREDENTIALS_H

#ifndef STASSID
#define STASSID "ssid"
#define STAPSK  "key"
#endif

#endif // __WIFI_CREDENTIALS_H
platformio.ini

see templ_platformio_ini

[env:<BOARD>]
platform = espressif8266
board = <BOARD>
framework = arduino
monitor_speed = 115200

extra_scripts = pre:extra_script.py

; stuff for OTA 
; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
upload_protocol = espota
upload_port = <IPADRESS>
upload_flags =
  --port=8266
  --auth=admin