New features?
Hello,
the following functionalities may come handy with ESP32:
-
Ability to ping simultaneously from different tasks. When I tried to do so, the return echo packets just got mixed, not knowing which belongs to which task.
-
Ability to capture intermediate ping results.
Bojan
create a pull request :+1:
I've taken a look into the code. It would require a massive restructuring - static variables and callback functions to class instances.
I can do it for ESP32, but I don't have that much experience with ESP8266. It should be easier though, since ESP8266 only runs a single task, but it is lacking some network structures, like hostent, ...
to see how many ping errors there were
ESPping.h: class PingClass { public: byte errors();
ESPping.cpp: byte PingClass::errors() { return _errors; }