File tree 2 files changed +16
-0
lines changed
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() {
314
314
return 0 ;
315
315
}
316
316
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
+
317
329
#if defined(COMPONENT_4343W)
318
330
319
331
#include " QSPIFBlockDevice.h"
Original file line number Diff line number Diff line change @@ -296,6 +296,9 @@ class WiFiClass
296
296
297
297
NetworkInterface *getNetwork ();
298
298
299
+ void setFeedWatchdogFunc (voidPrtFuncPtr func);
300
+ void feedWatchdog ();
301
+
299
302
private:
300
303
301
304
EMACInterface* _softAP = nullptr ;
@@ -316,6 +319,7 @@ class WiFiClass
316
319
bool isVisible (const char * ssid);
317
320
arduino::IPAddress ipAddressFromSocketAddress (SocketAddress socketAddress);
318
321
SocketAddress socketAddressFromIpAddress (arduino::IPAddress ip, uint16_t port);
322
+ voidPrtFuncPtr _feed_watchdog_func = 0 ;
319
323
};
320
324
321
325
}
You can’t perform that action at this time.
0 commit comments