One major new feature (asynchronous ICMP requests, and a little bit of re-working to support it) along with three minor modifications.
The async ICMP is used when you have time critical code to execute and/or don't like the idea of waiting around on network events. You first call asyncStart() to send an ICMP packet, then periodically poll to see whether results are in using asyncComplete(). The API is documented and an example is available in the examples/ directory.
Minor mods are:
a configurable (system-wide) timeout for pings;
a configurable ICMP payload per request; and
a new (optional) define that enables system yields at critical points (important for both synchronous and async pings on systems like ESP8266).
The patch applied by this push leaves things mostly unchanged, as neither ICMPPING_ASYNCH_ENABLE nor ICMPPING_INSERT_YIELDS are defined.
To enable these features, edit icmp_ping/ICMPPing.h and uncomment the defines as needed.
I've run both examples, Ping and AsyncPing, on an ESP8266 with async enabled and yields on, and also run the Ping example with those functions completly disabled.
One major new feature (asynchronous ICMP requests, and a little bit of re-working to support it) along with three minor modifications.
The async ICMP is used when you have time critical code to execute and/or don't like the idea of waiting around on network events. You first call asyncStart() to send an ICMP packet, then periodically poll to see whether results are in using asyncComplete(). The API is documented and an example is available in the examples/ directory.
Minor mods are:
The patch applied by this push leaves things mostly unchanged, as neither ICMPPING_ASYNCH_ENABLE nor ICMPPING_INSERT_YIELDS are defined. To enable these features, edit icmp_ping/ICMPPing.h and uncomment the defines as needed.
I've run both examples, Ping and AsyncPing, on an ESP8266 with async enabled and yields on, and also run the Ping example with those functions completly disabled.
Hope this is useful to others! Regards, Pat Deegan, http://psychogenic.com