diff --git a/.pio/build/esp32dev/tmpahxafcje.tmp b/.pio/build/esp32dev/tmpahxafcje.tmp new file mode 100644 index 0000000..f06427a --- /dev/null +++ b/.pio/build/esp32dev/tmpahxafcje.tmp @@ -0,0 +1 @@ +-o .pio/build/esp32dev/src/main.cpp.o -c -Wno-frame-address -std=gnu++11 -fexceptions -fno-rtti -Os -mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -MMD -DPLATFORMIO=60106 -DARDUINO_NodeMCU_32S -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE -DIDF_VER=\"v4.4.3\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -DARDUINO_ARCH_ESP32 -DESP32 -DF_CPU=240000000L -DARDUINO=10812 -DARDUINO_VARIANT=\"nodemcu-32s\" -DARDUINO_BOARD=\"NodeMCU-32S\" -DARDUINO_PARTITION_default -Isrc -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/HTTPClient/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src -I.pio/libdeps/esp32dev/NTPClient "-I.pio/libdeps/esp32dev/Adafruit SSD1306" "-I.pio/libdeps/esp32dev/Adafruit GFX Library" "-I.pio/libdeps/esp32dev/Adafruit BusIO" -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src -I.pio/libdeps/esp32dev/PubSubClient/src -I.pio/libdeps/esp32dev/CAN/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src -I.pio/libdeps/esp32dev/ESPUI/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/LittleFS/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src -I.pio/libdeps/esp32dev/ArduinoJson@src-a1164c4c0cec8d7db9eadf9d19ad17c1/src -I.pio/libdeps/esp32dev/WiFiManager -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/WebServer/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/Update/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/ESPmDNS/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/DNSServer/src "-I.pio/libdeps/esp32dev/ESP Async WebServer/src" -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/libraries/FS/src -I.pio/libdeps/esp32dev/AsyncTCP@src-2154f270fe2afd37e50c673663dbc05d/src -Ilib -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/newlib/platform_include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/esp_additions/freertos -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/esp_additions -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/soc -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/soc/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/port/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/port/esp32/private_include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/heap/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/log/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/lwip/include/apps -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/lwip/include/apps/sntp -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/lwip/lwip/src/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/lwip/port/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/lwip/port/esp32/include/arch -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/soc/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/soc/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/soc/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/platform_port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_rom/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_rom/include/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_rom/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_common/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_system/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_system/port/soc -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_system/port/public_compat -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/xtensa/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/xtensa/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_pm/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_ringbuf/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/efuse/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/efuse/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/vfs/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_wifi/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_event/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_netif/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_eth/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/tcpip_adapter/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_phy/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_phy/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_ipc/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/app_trace/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_timer/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/mbedtls/port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/mbedtls/mbedtls/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/mbedtls/esp_crt_bundle/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/app_update/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/spi_flash/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bootloader_support/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/nvs_flash/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/pthread/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_gdbstub/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_gdbstub/xtensa -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_gdbstub/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/espcoredump/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/espcoredump/include/port/xtensa -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/wpa_supplicant/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/wpa_supplicant/port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/wpa_supplicant/esp_supplicant/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/ieee802154/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/console -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/asio/asio/asio/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/asio/port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/common/osi/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/include/esp32/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/common/api/include/api -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/common/btc/profile/esp/blufi/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/common/btc/profile/esp/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/host/bluedroid/api/include/api -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_common/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_common/tinycrypt/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core/storage -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/btc/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/common/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/client/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/server/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/api/core/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/api/models/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/bt/esp_ble_mesh/api -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/cbor/port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/unity/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/unity/unity/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/cmock/CMock/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/coap/port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/coap/libcoap/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/nghttp/port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/nghttp/nghttp2/lib/includes -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-tls -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-tls/esp-tls-crypto -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_adc_cal/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hid/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/tcp_transport/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_http_client/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_http_server/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_https_ota/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_https_server/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_lcd/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_lcd/interface -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/protobuf-c/protobuf-c -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/protocomm/include/common -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/protocomm/include/security -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/protocomm/include/transports -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/mdns/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_local_ctrl/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/sdmmc/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_serial_slave_link/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_websocket_client/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/expat/expat/expat/lib -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/expat/port/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/wear_levelling/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/fatfs/diskio -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/fatfs/vfs -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/fatfs/src -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freemodbus/common/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/idf_test/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/idf_test/include/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/jsmn/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/json/cJSON -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/libsodium/libsodium/src/libsodium/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/libsodium/port_include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/mqtt/esp-mqtt/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/openssl/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/perfmon/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/spiffs/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/ulp/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/wifi_provisioning/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/rmaker_common/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/json_parser/upstream/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/json_parser/upstream -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/json_generator/upstream -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_schedule/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_rainmaker/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/gpio_button/button/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/qrcode/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/ws2812_led -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_diagnostics/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/rtc_store/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_insights/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/dotprod/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/support/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/windows/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/windows/hann/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman_harris/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman_nuttall/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/windows/nuttall/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/windows/flat_top/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/iir/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/fir/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/math/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/math/add/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/math/sub/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/math/mul/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/math/addc/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/math/mulc/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/math/sqrt/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/matrix/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/fft/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/dct/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/conv/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/common/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/kalman/ekf/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dsp/modules/kalman/ekf_imu13states/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_littlefs/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/tool -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/typedef -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/image -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/math -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/nn -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/layer -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/detect -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-dl/include/model_zoo -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-sr/src/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-sr/esp-tts/esp_tts_chinese/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp-sr/include/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp32-camera/driver/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp32-camera/conversions/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/fb_gfx/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/dio_qspi/include -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/cores/esp32 -IC:/Users/uli/.platformio/packages/framework-arduinoespressif32/variants/nodemcu-32s src/main.cpp diff --git a/.pio/libdeps/esp32dev/Adafruit BusIO b/.pio/libdeps/esp32dev/Adafruit BusIO new file mode 160000 index 0000000..186bfb0 --- /dev/null +++ b/.pio/libdeps/esp32dev/Adafruit BusIO @@ -0,0 +1 @@ +Subproject commit 186bfb005c6d4b597a09290cb3e451c30a5baa97 diff --git a/.pio/libdeps/esp32dev/Adafruit GFX Library b/.pio/libdeps/esp32dev/Adafruit GFX Library new file mode 160000 index 0000000..5ea4be3 --- /dev/null +++ b/.pio/libdeps/esp32dev/Adafruit GFX Library @@ -0,0 +1 @@ +Subproject commit 5ea4be3ffeae918899aeec8cbb67f87359cf0026 diff --git a/.pio/libdeps/esp32dev/Adafruit SSD1306 b/.pio/libdeps/esp32dev/Adafruit SSD1306 new file mode 160000 index 0000000..88711ef --- /dev/null +++ b/.pio/libdeps/esp32dev/Adafruit SSD1306 @@ -0,0 +1 @@ +Subproject commit 88711efc3e4b4a1a3fb238a1c5aa9590697f9c02 diff --git a/.pio/libdeps/esp32dev/ArduinoJson@src-a1164c4c0cec8d7db9eadf9d19ad17c1 b/.pio/libdeps/esp32dev/ArduinoJson@src-a1164c4c0cec8d7db9eadf9d19ad17c1 new file mode 160000 index 0000000..8f7211a --- /dev/null +++ b/.pio/libdeps/esp32dev/ArduinoJson@src-a1164c4c0cec8d7db9eadf9d19ad17c1 @@ -0,0 +1 @@ +Subproject commit 8f7211a50f19726a0c3698112827d92993c1cc7f diff --git a/.pio/libdeps/esp32dev/AsyncTCP@src-2154f270fe2afd37e50c673663dbc05d b/.pio/libdeps/esp32dev/AsyncTCP@src-2154f270fe2afd37e50c673663dbc05d new file mode 160000 index 0000000..ca8ac5f --- /dev/null +++ b/.pio/libdeps/esp32dev/AsyncTCP@src-2154f270fe2afd37e50c673663dbc05d @@ -0,0 +1 @@ +Subproject commit ca8ac5f919d02bea07b474531981ddbfd64de97c diff --git a/.pio/libdeps/esp32dev/CAN b/.pio/libdeps/esp32dev/CAN new file mode 160000 index 0000000..68f4b7f --- /dev/null +++ b/.pio/libdeps/esp32dev/CAN @@ -0,0 +1 @@ +Subproject commit 68f4b7fb4c5366d067a363f642d270355d813115 diff --git a/.pio/libdeps/esp32dev/ESP Async WebServer b/.pio/libdeps/esp32dev/ESP Async WebServer new file mode 160000 index 0000000..f71e3d4 --- /dev/null +++ b/.pio/libdeps/esp32dev/ESP Async WebServer @@ -0,0 +1 @@ +Subproject commit f71e3d427b5be9791a8a2c93cf8079792c3a9a26 diff --git a/.pio/libdeps/esp32dev/ESPUI b/.pio/libdeps/esp32dev/ESPUI new file mode 160000 index 0000000..5cf0ce6 --- /dev/null +++ b/.pio/libdeps/esp32dev/ESPUI @@ -0,0 +1 @@ +Subproject commit 5cf0ce6afa38511e80038131030b46a385de4f32 diff --git a/.pio/libdeps/esp32dev/NTPClient b/.pio/libdeps/esp32dev/NTPClient new file mode 160000 index 0000000..1c04e07 --- /dev/null +++ b/.pio/libdeps/esp32dev/NTPClient @@ -0,0 +1 @@ +Subproject commit 1c04e07f273c6a6614ba28136e9216b5ac401d66 diff --git a/.pio/libdeps/esp32dev/PubSubClient b/.pio/libdeps/esp32dev/PubSubClient new file mode 160000 index 0000000..2d228f2 --- /dev/null +++ b/.pio/libdeps/esp32dev/PubSubClient @@ -0,0 +1 @@ +Subproject commit 2d228f2f862a95846c65a8518c79f48dfc8f188c diff --git a/.pio/libdeps/esp32dev/WiFiManager b/.pio/libdeps/esp32dev/WiFiManager new file mode 160000 index 0000000..297123b --- /dev/null +++ b/.pio/libdeps/esp32dev/WiFiManager @@ -0,0 +1 @@ +Subproject commit 297123b5d7670e6c734836c13bf5ffd09b094889 diff --git a/src/DisplayHandler.cpp b/src/DisplayHandler.cpp new file mode 100644 index 0000000..ad15000 --- /dev/null +++ b/src/DisplayHandler.cpp @@ -0,0 +1,55 @@ +/* +This Libary handles the data to the Display +https://randomnerdtutorials.com/esp32-ssd1306-oled-display-arduino-ide/ +https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/ +// Pinout Reference +https://randomnerdtutorials.com/esp32-pinout-reference-gpios/ +https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/ + +// Display Driver SSD 1306 +// Size 0,96 Inch 128*64 pixel monocolour +// Pin wiring +//Vin 3,3V +// GND GND# +// SCL GPIO21 #define Display_I2C_SDA1 21 +// SDA GPIO22 #define Display_I2C_SLC1 22 + +/********* + Rui Santos + Complete project details at https://randomnerdtutorials.com +*********/ + #include + //#include + #include + #include + + #define SCREEN_WIDTH 128 // OLED display width, in pixels + #define SCREEN_HEIGHT 64 // OLED display height, in pixels + + // Declaration for an SSD1306 display connected to I2C (SDA GPIO21, SCL GPIO22 pins) + Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1); + + + + +void setup_display(){ + + + if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3D for 128x64 + Serial.println(F("SSD1306 allocation failed")); + for(;;); + } + delay(2000); + display.clearDisplay(); + + display.setTextSize(2); + display.setTextColor(WHITE); + display.setCursor(0, 10); + // Display static text + display.println("Hui,"); + display.println("Battary"); + display.println("Storage!"); + + display.display(); + +} \ No newline at end of file diff --git a/src/sunrise.cpp b/src/sunrise.cpp new file mode 100644 index 0000000..422724c --- /dev/null +++ b/src/sunrise.cpp @@ -0,0 +1,252 @@ + + +#include +#include + + +#define PI 3.1415926536 +int dayofyear=0; + +// Define NTP Client to get time +WiFiUDP ntpUDP; +NTPClient timeClient(ntpUDP, "pool.ntp.org"); + +//Week Days +String weekDays[7]={"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; + +//Month names +String months[12]={"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; + + +//________________________________________________________________________________________calculate sunrise and sunset +// die folgenden Formeln wurden der Seite http://lexikon.astronomie.info/zeitgleichung/ entnommen + + +// subfunction to compute Sonnendeklination +float sonnendeklination(int T) { + // Deklination der Sonne in Radians + // Formula 2008 by Arnold(at)Barmettler.com, fit to 20 years of average declinations (2008-2017) + return 0.409526325277017*sin(0.0169060504029192*(T-80.0856919827619)); +} + +// subfunction to compute Zeitdifferenz +// Dauer des halben Tagbogens in Stunden: Zeit von Sonnenaufgang (Hoehe h) bis zum hoechsten Stand im Sueden +float zeitdifferenz(float Deklination, float B) { + + return 12.0*acos((sin(-(50.0/60.0)*PI/180.0) - sin(B)*sin(Deklination)) / (cos(B)*cos(Deklination)))/PI; +} + +// subfunction to compute Zeitgleichung +float zeitgleichung(int T) { + return -0.170869921174742*sin(0.0336997028793971 * T + 0.465419984181394) - 0.129890681040717*sin(0.0178674832556871*T - 0.167936777524864); +} + +// subfunction to compute sunrise +float aufgang(int T, float B) { + float DK = sonnendeklination(T); + return 12 - zeitdifferenz(DK, B) - zeitgleichung(T); +} + +// subfunction to compute sunset +float untergang(int T, float B) { + float DK = sonnendeklination(T); + return 12 + zeitdifferenz(DK, B) - zeitgleichung(T); +} + +// subfunction to compute it all   + +/*void initsunset(int T) { + float Laenge = 10.98; + float Breite = 48.25; + int Zone = 2; // Unterschied zu UTC-Zeit ( = 2 in der Sommerzeit, 1 in der Winterzeit ) + float B = Breite*PI/180.0; // geogr. Breite in Radians + + // Berechnung von Sonnenauf- und -Untergang + float Aufgang = aufgang(T, B); // Sonnenaufgang bei 0 Grad Laenge + float Untergang = untergang(T, B); // Sonnenuntergang bei 0 Grad Laenge + + Aufgang = Aufgang - Laenge /15.0 + Zone; // Sonnenaufgang bei gesuchter Laenge und Zeitzone in Stunden + Untergang = Untergang - Laenge /15.0 + Zone; // Sonnenuntergang bei gesuchter Laenge und Zeitzone in Stunden + Serial.print("Tag: ");Serial.print(T); + Serial.print(" Aufgang: ");Serial.print(Aufgang);Serial.print(" Untergang: ");Serial.println(Untergang); +} +*/ +float computeAufgang(int T, float Laenge, float Breite) { + + int Zone = 1; // Unterschied zu UTC-Zeit ( = 2 in der Sommerzeit, 1 in der Winterzeit ) + float B = Breite*PI/180.0; // geogr. Breite in Radians + + // Berechnung von Sonnenaufgang + float Aufgang = aufgang(T, B); // Sonnenaufgang bei 0 Grad Laenge + + Aufgang = Aufgang - Laenge /15.0 + Zone; // Sonnenaufgang bei gesuchter Laenge und Zeitzone in Stunden + return Aufgang; +} + +float computeUntergang(int T, float Laenge, float Breite) { + + int Zone = 1; // Unterschied zu UTC-Zeit ( = 2 in der Sommerzeit, 1 in der Winterzeit ) + float B = Breite*PI/180.0; // geogr. Breite in Radians + + // Berechnung von Sonnenuntergang + + float Untergang = untergang(T, B); // Sonnenuntergang bei 0 Grad Laenge + + Untergang = Untergang - Laenge /15.0 + Zone; // Sonnenuntergang bei gesuchter Laenge und Zeitzone in Stunden + return Untergang; +} + +//___________________________________________________________end calculate sunrise and sunset + +//_____________________________________________________________Calculate Day of year +/************************************************* + Program to calculate day of year from the date + * + * Enter date (MM/DD/YYYY): 12/30/2006 + * Day of year: 364 + * + ************************************************/ + +int caldayofyear(int day,int mon,int year) +{ + int days_in_feb = 28; + int doy; // day of year + + + doy = day; + + // check for leap year + if( (year % 4 == 0 && year % 100 != 0 ) || (year % 400 == 0) ) + { + days_in_feb = 29; + } + + switch(mon) + { + case 2: + doy += 31; + break; + case 3: + doy += 31+days_in_feb; + break; + case 4: + doy += 31+days_in_feb+31; + break; + case 5: + doy += 31+days_in_feb+31+30; + break; + case 6: + doy += 31+days_in_feb+31+30+31; + break; + case 7: + doy += 31+days_in_feb+31+30+31+30; + break; + case 8: + doy += 31+days_in_feb+31+30+31+30+31; + break; + case 9: + doy += 31+days_in_feb+31+30+31+30+31+31; + break; + case 10: + doy += 31+days_in_feb+31+30+31+30+31+31+30; + break; + case 11: + doy += 31+days_in_feb+31+30+31+30+31+31+30+31; + break; + case 12: + doy += 31+days_in_feb+31+30+31+30+31+31+30+31+30; + break; + } + + + + return doy; // return day of year +} +//_________________________________________________________________End calculate day of year + +//____________________________________________________________________SetPV flag +// this function calculates start and end of the PV production +// based on sunrise and sunset and a lag factor + +bool setPVstartflag(float lagmorning, float lagevening) +{ +bool pvstartflag=false; +float startpv, stoppv; +float laenge = 9.0658; // Postition of PV +float breite = 48.7990; // Position of PV +float currenttime; // this is the time in decimal hours i.e. 8.5 + + +timeClient.update(); + time_t epochTime = timeClient.getEpochTime(); + float currentHour = timeClient.getHours();// get current hour + float currentMinute = timeClient.getMinutes(); // get current menutes + struct tm *ptm = gmtime ((time_t *)&epochTime); + int monthDay = ptm->tm_mday;// get current day of the month + int currentMonth = ptm->tm_mon+1;//get current month + int currentYear = ptm->tm_year+1900; // get current year + +dayofyear=caldayofyear(monthDay,currentMonth,currentYear);// calculate current day of the year + + startpv=computeAufgang(dayofyear, laenge, breite) + lagmorning; // statring time of pv + stoppv=computeUntergang(dayofyear,laenge,breite)-lagevening; // stop time of PV + +currenttime=currentHour + (currentMinute/60); // calculate current ime in decimal hours + +// figure out wethere pv can produce power or not +// flag pvstartflag is true at daytime when pv can procuce power +if (currenttime>=startpv & currenttime<=stoppv){ + pvstartflag=true; +}else pvstartflag= false; + +//__________________________-Test ausgabe + +Serial.print ("Sonnenaufgang: "); +Serial.println(computeAufgang(dayofyear, laenge, breite)); +Serial.print("Sonnenuntergang: "); +Serial.println(computeUntergang(dayofyear,laenge,breite)); + + +Serial.print("Day of the year: "); +Serial.println (dayofyear); + +Serial.print("Current minute: "); +Serial.println (currentMinute); + + +Serial.print("Current time decimal: "); +Serial.println (currenttime); + +Serial.print("start PV: "); +Serial.println (startpv); + +Serial.print("stoppv PV: "); +Serial.println (stoppv); + +Serial.print("pvstartflag: "); +Serial.println (pvstartflag); + +String currentDate = String(currentYear) + "-" + String(currentMonth) + "-" + String(monthDay); + Serial.print("Current date: "); + Serial.println(currentDate); + +return pvstartflag; // return pv start produce flag +} + + +//____________________________________________________________________end day of year + + +//________________________________________________START NTP Client +// Initialize a NTPClient to get time to calculate sunrise and sunset +void setuptimeClient (){ + // Set offset time in seconds to adjust for your timezone, for example: + // GMT +1 = 3600 + // GMT +8 = 28800 + // GMT -1 = -3600 + // GMT 0 = 0 + timeClient.begin(); + timeClient.setTimeOffset(3600); + +} +//________________________________________________END NTP client \ No newline at end of file