OpenSprinkler Forums OpenSprinkler Unified Firmware ESP32 port of 2.1.9 firmware Reply To: ESP32 port of 2.1.9 firmware

#74033

zenonmb
Participant

I do not know much about Arduino either,but i can tell you what I have done to succesfully compile and run OPensprinkler on ESP32 module.
Downloaded as you mentioned the zip file for opensprinkler and also the other 3 libraries.
I have put those three libraries under the library folder within Arduino . When trying to compile got same message about creating a folder with name mainarduino ,so I have also put all the opensprinkler files under this new folder (not the other 3 libraries) . Then run the compiler again and this is the log should it help.

In file included from C:\Users\Rosario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:170,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\utils.h:28,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.h:29,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.cpp:24:
C:\Users\Rosario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/IPAddress.h: In static member function ‘static void OpenSprinkler::config_ip()’:
C:\Users\Rosario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/IPAddress.h:67:10: note: candidate 1: ‘bool IPAddress::operator==(const uint8_t*) const’
bool operator==(const uint8_t* addr) const;
^~~~~~~~
C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.cpp:2634:22: note: candidate 2: ‘operator==(uint32_t {aka unsigned int}, uint32_t {aka unsigned int})’ <built-in>
if(dvip==(uint32_t)0x00000000) return;
^~~~~~~~~~
In file included from C:\Users\Rosario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:170,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\utils.h:28,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.h:29,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.cpp:24:
C:\Users\Rosario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/IPAddress.h:67:10: note: candidate 1: ‘bool IPAddress::operator==(const uint8_t*) const’
bool operator==(const uint8_t* addr) const;
^~~~~~~~
C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.cpp:2638:22: note: candidate 2: ‘operator==(uint32_t {aka unsigned int}, uint32_t {aka unsigned int})’ <built-in>
if(gwip==(uint32_t)0x00000000) return;
^~~~~~~~~~
In file included from C:\Users\Rosario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/Arduino.h:170,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\utils.h:28,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.h:29,
from C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.cpp:24:
C:\Users\Rosario\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\cores\esp32/IPAddress.h:67:10: note: candidate 1: ‘bool IPAddress::operator==(const uint8_t*) const’
bool operator==(const uint8_t* addr) const;
^~~~~~~~
C:\Users\Rosario\Documents\Arduino\Proyectos\Opensprinkler\OpenSprinkler-Firmware-ESP32port-master\mainArduino\OpenSprinkler.cpp:2642:22: note: candidate 2: ‘operator==(uint32_t {aka unsigned int}, uint32_t {aka unsigned int})’ <built-in>
if(subn==(uint32_t)0x00000000) return;
^~~~~~~~~~
Sketch uses 922585 bytes (70%) of program storage space. Maximum is 1310720 bytes.
Global variables use 53168 bytes (16%) of dynamic memory, leaving 274512 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM3
Connecting…….
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ec:62:60:93:ac:a4
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
Configuring flash size…
Flash will be erased from 0x00001000 to 0x00005fff…
Flash will be erased from 0x00008000 to 0x00008fff…
Flash will be erased from 0x0000e000 to 0x0000ffff…
Flash will be erased from 0x00010000 to 0x000f2fff…
Compressed 18912 bytes to 13025…
Writing at 0x00001000… (100 %)
Wrote 18912 bytes (13025 compressed) at 0x00001000 in 0.4 seconds (effective 387.3 kbit/s)…
Hash of data verified.
Compressed 3072 bytes to 128…
Writing at 0x00008000… (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 524.3 kbit/s)…
Hash of data verified.
Compressed 8192 bytes to 47…
Writing at 0x0000e000… (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 838.1 kbit/s)…
Hash of data verified.
Compressed 928352 bytes to 603790…
Writing at 0x00010000… (2 %)
Writing at 0x0001a599… (5 %)
Writing at 0x000257dd… (8 %)
Writing at 0x00031fee… (10 %)
Writing at 0x0003b4d7… (13 %)
Writing at 0x00040f7d… (16 %)
Writing at 0x000467d3… (18 %)
Writing at 0x0004bd7b… (21 %)
Writing at 0x00051063… (24 %)
Writing at 0x00056a03… (27 %)
Writing at 0x0005c39a… (29 %)
Writing at 0x00061c7e… (32 %)
Writing at 0x0006773c… (35 %)
Writing at 0x0006cc76… (37 %)
Writing at 0x00072107… (40 %)
Writing at 0x00077327… (43 %)
Writing at 0x0007c63b… (45 %)
Writing at 0x00081946… (48 %)
Writing at 0x00086b72… (51 %)
Writing at 0x0008bc4a… (54 %)
Writing at 0x00090fad… (56 %)
Writing at 0x0009609c… (59 %)
Writing at 0x0009ba7f… (62 %)
Writing at 0x000a11f9… (64 %)
Writing at 0x000a66c0… (67 %)
Writing at 0x000ab96d… (70 %)
Writing at 0x000b0d70… (72 %)
Writing at 0x000b633c… (75 %)
Writing at 0x000bb8fa… (78 %)
Writing at 0x000c1114… (81 %)
Writing at 0x000c6e79… (83 %)
Writing at 0x000cc7fa… (86 %)
Writing at 0x000d4f47… (89 %)
Writing at 0x000dd9c8… (91 %)
Writing at 0x000e2fba… (94 %)
Writing at 0x000e87d9… (97 %)
Writing at 0x000edaae… (100 %)
Wrote 928352 bytes (603790 compressed) at 0x00010000 in 10.1 seconds (effective 733.1 kbit/s)…
Hash of data verified.

Leaving…
Hard resetting via RTS pin…

BTW, the ESPmodule is ESP WROOM 32 with 9102 usb-serial chip. My Arduino version is 1.8.19
Hope this helps

martin