File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,18 @@ unsigned long arduino::WiFiClass::getTime() {
314314 return 0 ;
315315}
316316
317+ void arduino::WiFiClass::setFeedWatchdogFunc (voidPrtFuncPtr func)
318+ {
319+ _feed_watchdog_func = func;
320+ }
321+
322+ void arduino::WiFiClass::feedWatchdog ()
323+ {
324+ if (_feed_watchdog_func)
325+ _feed_watchdog_func ();
326+ }
327+
328+
317329#if defined(COMPONENT_4343W)
318330
319331#include " QSPIFBlockDevice.h"
Original file line number Diff line number Diff line change @@ -296,6 +296,9 @@ class WiFiClass
296296
297297 NetworkInterface *getNetwork ();
298298
299+ void setFeedWatchdogFunc (voidPrtFuncPtr func);
300+ void feedWatchdog ();
301+
299302private:
300303
301304 EMACInterface* _softAP = nullptr ;
@@ -316,6 +319,7 @@ class WiFiClass
316319 bool isVisible (const char * ssid);
317320 arduino::IPAddress ipAddressFromSocketAddress (SocketAddress socketAddress);
318321 SocketAddress socketAddressFromIpAddress (arduino::IPAddress ip, uint16_t port);
322+ voidPrtFuncPtr _feed_watchdog_func = 0 ;
319323};
320324
321325}
You can’t perform that action at this time.
0 commit comments