dewenni / ESP_Buderus_KM271

Control your Buderus Logamatic 2107 or HS-2105 with MQTT or Home Assistant
MIT License
55 stars 10 forks source link

`basics.h`: fix build error #17

Closed christian-heusel closed 1 year ago

christian-heusel commented 1 year ago

This pr fixes a build failure where the header AndroidJSON.h is missing. It seems like the header is not fully capitalized anymore, which this pr fixes.

Click to see error message ``` pio run Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (6.1.0) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES: - framework-arduinoespressif32 @ 3.20007.0 (2.0.7) - tool-esptoolpy @ 1.40500.0 (4.5.0) - tool-openocd-esp32 @ 2.1100.20220706 (11.0) - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5 LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 39 compatible libraries Scanning dependencies... Dependency Graph |-- AsyncTCP @ 1.1.1 |-- ESP Async WebServer @ 1.2.3+sha.f71e3d4 | |-- AsyncTCP @ 1.1.1 | |-- FS @ 2.0.0 | |-- WiFi @ 2.0.0 |-- ArduinoJson @ 6.20.1 |-- muTimer @ 0.1.1 |-- PubSubClient @ 2.8.0 |-- ESPUI @ 2.2.1 | |-- ESP Async WebServer @ 1.2.3+sha.f71e3d4 | | |-- AsyncTCP @ 1.1.1 | | |-- FS @ 2.0.0 | | |-- WiFi @ 2.0.0 | |-- ArduinoJson @ 6.20.1 | |-- WiFi @ 2.0.0 | |-- ArduinoOTA @ 2.0.0 | | |-- Update @ 2.0.0 | | |-- WiFi @ 2.0.0 | | |-- ESPmDNS @ 2.0.0 | | | |-- WiFi @ 2.0.0 | |-- AsyncTCP @ 1.1.1 | |-- LittleFS @ 2.0.0 | | |-- FS @ 2.0.0 |-- WiFi @ 2.0.0 |-- EEPROM @ 2.0.0 |-- ArduinoOTA @ 2.0.0 | |-- Update @ 2.0.0 | |-- WiFi @ 2.0.0 | |-- ESPmDNS @ 2.0.0 | | |-- WiFi @ 2.0.0 |-- SPI @ 2.0.0 Building in debug mode Compiling .pio/build/esp32dev/src/basics.cpp.o Compiling .pio/build/esp32dev/src/km271.cpp.o In file included from src/basics.cpp:1: include/basics.h:13:10: fatal error: ArduinoJSON.h: No such file or directory ********************************************************************* * Looking for ArduinoJSON.h dependency? Check our library registry! * * CLI > platformio lib search "header:ArduinoJSON.h" * Web > https://registry.platformio.org/search?q=header:ArduinoJSON.h * ********************************************************************* #include ^~~~~~~~~~~~~~~ compilation terminated. Compiling .pio/build/esp32dev/src/main.cpp.o Compiling .pio/build/esp32dev/src/mqtt.cpp.o In file included from src/km271.cpp:11: include/basics.h:13:10: fatal error: ArduinoJSON.h: No such file or directory ********************************************************************* * Looking for ArduinoJSON.h dependency? Check our library registry! * * CLI > platformio lib search "header:ArduinoJSON.h" * Web > https://registry.platformio.org/search?q=header:ArduinoJSON.h * ********************************************************************* #include ^~~~~~~~~~~~~~~ compilation terminated. Compiling .pio/build/esp32dev/src/oilmeter.cpp.o Compiling .pio/build/esp32dev/src/webUI.cpp.o Building .pio/build/esp32dev/bootloader.bin Generating partitions .pio/build/esp32dev/partitions.bin esptool.py v4.5 Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. In file included from src/main.cpp:2: include/basics.h:13:10: fatal error: ArduinoJSON.h: No such file or directory ********************************************************************* * Looking for ArduinoJSON.h dependency? Check our library registry! * * CLI > platformio lib search "header:ArduinoJSON.h" * Web > https://registry.platformio.org/search?q=header:ArduinoJSON.h * ********************************************************************* #include ^~~~~~~~~~~~~~~ compilation terminated. In file included from src/oilmeter.cpp:9: include/basics.h:13:10: fatal error: ArduinoJSON.h: No such file or directory ********************************************************************* * Looking for ArduinoJSON.h dependency? Check our library registry! * * CLI > platformio lib search "header:ArduinoJSON.h" * Web > https://registry.platformio.org/search?q=header:ArduinoJSON.h * ********************************************************************* #include ^~~~~~~~~~~~~~~ compilation terminated. In file included from src/mqtt.cpp:2: include/basics.h:13:10: fatal error: ArduinoJSON.h: No such file or directory ********************************************************************* * Looking for ArduinoJSON.h dependency? Check our library registry! * * CLI > platformio lib search "header:ArduinoJSON.h" * Web > https://registry.platformio.org/search?q=header:ArduinoJSON.h * ********************************************************************* #include ^~~~~~~~~~~~~~~ compilation terminated. Compiling .pio/build/esp32dev/lib76e/AsyncTCP/AsyncTCP.cpp.o In file included from src/webUI.cpp:4: include/basics.h:13:10: fatal error: ArduinoJSON.h: No such file or directory ********************************************************************* * Looking for ArduinoJSON.h dependency? Check our library registry! * * CLI > platformio lib search "header:ArduinoJSON.h" * Web > https://registry.platformio.org/search?q=header:ArduinoJSON.h * ********************************************************************* #include ^~~~~~~~~~~~~~~ compilation terminated. Compiling .pio/build/esp32dev/libae1/FS/FS.cpp.o Compiling .pio/build/esp32dev/libae1/FS/vfs_api.cpp.o Compiling .pio/build/esp32dev/lib4d3/WiFi/WiFi.cpp.o *** [.pio/build/esp32dev/src/basics.cpp.o] Error 1 *** [.pio/build/esp32dev/src/km271.cpp.o] Error 1 *** [.pio/build/esp32dev/src/main.cpp.o] Error 1 *** [.pio/build/esp32dev/src/oilmeter.cpp.o] Error 1 *** [.pio/build/esp32dev/src/mqtt.cpp.o] Error 1 *** [.pio/build/esp32dev/src/webUI.cpp.o] Error 1 ===================================================== [FAILED] Took 2.17 seconds ===================================================== ```
dewenni commented 1 year ago

thanks @christian-heusel for that.