We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f95bc3 + 28bae3e commit 7bce7fcCopy full SHA for 7bce7fc
libraries/WiFi/src/WiFi.cpp
@@ -314,6 +314,18 @@ unsigned long arduino::WiFiClass::getTime() {
314
return 0;
315
}
316
317
+void arduino::WiFiClass::setFeedWatchdogFunc(ArduinoPortentaH7WiFiFeedWatchdogFuncPtr 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
329
#if defined(COMPONENT_4343W)
330
331
#include "QSPIFBlockDevice.h"
libraries/WiFi/src/WiFi.h
@@ -49,9 +49,12 @@ extern "C" {
49
#define DEFAULT_AP_CHANNEL 6
50
#endif
51
52
+#define ARDUINO_PORTENTA_H7_WIFI_HAS_FEED_WATCHDOG_FUNC
53
54
namespace arduino {
55
56
typedef void* (*voidPrtFuncPtr)(void);
57
+typedef void (*ArduinoPortentaH7WiFiFeedWatchdogFuncPtr)(void);
58
59
class WiFiClass
60
{
@@ -296,6 +299,9 @@ class WiFiClass
296
299
297
300
NetworkInterface *getNetwork();
298
301
302
+ void setFeedWatchdogFunc(ArduinoPortentaH7WiFiFeedWatchdogFuncPtr func);
303
+ void feedWatchdog();
304
305
private:
306
307
EMACInterface* _softAP = nullptr;
@@ -316,6 +322,7 @@ class WiFiClass
bool isVisible(const char* ssid);
arduino::IPAddress ipAddressFromSocketAddress(SocketAddress socketAddress);
SocketAddress socketAddressFromIpAddress(arduino::IPAddress ip, uint16_t port);
+ ArduinoPortentaH7WiFiFeedWatchdogFuncPtr _feed_watchdog_func = 0;
};
libraries/WiFi/src/WiFiHelpers.cpp
@@ -23,6 +23,7 @@ static FILE* target;
23
24
void body_callback(const char* data, uint32_t data_len)
25
26
+ WiFi.feedWatchdog();
27
fwrite(data, 1, data_len, target);
28
29
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments