-
Rename
config (TEMPLATE).htoconfig.hppwith correct settings -
In
main.inocreate all devices and add them to device list -
To use ESP32 with arduino IDE follow this manual: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html arduino.additionalUrls
Or use VSCode (recommended for better IntelliSense) with Arduino extension (needs similar config as Arduino IDE)
-
Use ESP32 Dev Module as selected board. Dont forget to set correct COM port.
-
Update
c_cpp_properties.jsonwith your path"env": { "pathToArduino": "your\\path\\to\\arduino", "pathToLib": "your\\path\\to\\lib" },
-
Install libraries
- ArduinoJson by Benoit Blanchon
- WebSockets by Markus Sattler
- ESP32Servo by John K.
- OneWire by Jim Studt
- IMPORTANT: to fix 'rtc_gpio_desc' error visit: https://githubmemory.com/repo/PaulStoffregen/OneWire/issues/100 or Find 'rtc_gpio_desc' replace with 'rtc_io_desc' in the 'OneWire_direct_gpio.h' file solved the issue
- ModbusMaster (2.0.1) from https://www.arduino.cc/reference/en/libraries/modbusmaster/
- Arduino-Temperature-Control-Library from https://github.com/milesburton/Arduino-Temperature-Control-Library
Error during upload to some ESP boards - TIMED_OUT - press (1 sec) BOOT button on ESP during upload https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/
*With DS18B20 you can add multiple sensors to same pins because OneWire
*With H300 we also had to add 1k resistors between A-VIN and B-GND

