OpenSprinkler › Forums › Comments, Suggestions, Requests › Opensprinkler on ESP8266 › Reply To: Opensprinkler on ESP8266
zenonmb
Tried and as you suggested it was not difficult at all. Copied all files into the mainArduino directory , also added the 4 libraries and hit compile/upload(all within Arduino IDE).
No error, perfect clean. Same result as before, showed the WIFI as OS-ACD16, open browser, set my network credentials and after a minute did a reboot.
As before, it did not respond to the browser, so went to the defines.h files and uncommented the debug line.
Now when tried to compile, got errors stating that some libraries were not used . For example had with mqtt and also Ethernet(old libraries already in my arduino), so remove those and still getting the error below
Arduino: 1.8.12 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200”
sketch\main.cpp: In function ‘void do_loop()’:
sketch\main.cpp:445:71: error: ‘static uint8_t Enc28J60Network::readReg(uint8_t)’ is private within this context
445 | uint16_t estat = Enc28J60Network::readReg((uint8_t) ENC28J60_ESTAT);
| ^
In file included from C:\Program Files (x86)\Arduino\libraries\EthernetENC-master\src/Ethernet.h:31,
from sketch\OpenSprinkler.h:38,
from sketch\main.cpp:26:
C:\Program Files (x86)\Arduino\libraries\EthernetENC-master\src/utility/Enc28J60Network.h:65:18: note: declared private here
65 | static uint8_t readReg(uint8_t address);
| ^~~~~~~
sketch\main.cpp:446:67: error: ‘static uint8_t Enc28J60Network::readReg(uint8_t)’ is private within this context
446 | uint16_t eir = Enc28J60Network::readReg((uint8_t) ENC28J60_EIR);
| ^
In file included from C:\Program Files (x86)\Arduino\libraries\EthernetENC-master\src/Ethernet.h:31,
from sketch\OpenSprinkler.h:38,
from sketch\main.cpp:26:
C:\Program Files (x86)\Arduino\libraries\EthernetENC-master\src/utility/Enc28J60Network.h:65:18: note: declared private here
65 | static uint8_t readReg(uint8_t address);
| ^~~~~~~
sketch\main.cpp:447:71: error: ‘static uint8_t Enc28J60Network::readReg(uint8_t)’ is private within this context
447 | uint16_t econ1 = Enc28J60Network::readReg((uint8_t) ENC28J60_ECON1);
| ^
In file included from C:\Program Files (x86)\Arduino\libraries\EthernetENC-master\src/Ethernet.h:31,
from sketch\OpenSprinkler.h:38,
from sketch\main.cpp:26:
C:\Program Files (x86)\Arduino\libraries\EthernetENC-master\src/utility/Enc28J60Network.h:65:18: note: declared private here
65 | static uint8_t readReg(uint8_t address);
| ^~~~~~~
exit status 1
Error compiling for board Generic ESP8266 Module.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Any suggestion?