I list only the affected parts of the code.
And I get these mistakes:
*C:/Users/borgm/OneDrive/Dokumenty/PlatformIO/Projects/WebMonitor/src/ESP8266_WebMon_V1.ino:744:5: error: 'ICMPEchoReply' was not declared in this scope
ICMPEchoReply echoReply = ping(remote_ip, 1);
^
C:/Users/borgm/OneDrive/Dokumenty/PlatformIO/Projects/WebMonitor/src/ESP8266_WebMon_V1.ino:744:19: error: expected ';' before 'echoReply'
ICMPEchoReply echoReply = ping(remote_ip, 1);
^
C:/Users/borgm/OneDrive/Dokumenty/PlatformIO/Projects/WebMonitor/src/ESP8266_WebMon_V1.ino:746:20: error: 'echoReply' was not declared in this scope
Serial.println(echoReply.status);*
To use, copy the icmp_ping directory into the libraries directory of your Arduino folder.
So this library does not comfort to the standard arduino library structure.
To use it, please manually download the library as ZIP from the gitlab and put the icmp_ping folder in the lib/ folder of the project (so that the structure is now lib/icmp_ping/*source files*).
THX,
in the end it was my fault, I had a typo in the notation.
Unfortunately, after activating this library, the compilation is successfully completed, but ESP is rebooted. You have no idea what might be wrong now. The program otherwise worked well and stably for several days, until this library was added. I need to ping the router in combination with ESP8266 and ethernet (W5500 - lib. Ethernet3, ethernetwebserver v1.0.9). But I can’t find another library that supports this assembly, and this causes a restart.
I tried more attempts because the library example worked. Finally, the order of the loaded libraries had to be changed and everything is already functional.