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.
1 parent c2cfecf commit b0f6a58Copy full SHA for b0f6a58
libraries/WiFi/src/WiFi.cpp
@@ -297,6 +297,13 @@ unsigned long arduino::WiFiClass::getTime() {
297
return 0;
298
}
299
300
+void setTimeout(unsigned long timeout) {
301
+ if(!wifi_if) {
302
+ return;
303
+ }
304
+ wifi_if->set_timeout(timeout);
305
+}
306
+
307
void arduino::WiFiClass::statusCallback(nsapi_event_t status, intptr_t param)
308
{
309
if (((param == NSAPI_STATUS_DISCONNECTED) ||
libraries/WiFi/src/WiFi.h
@@ -168,6 +168,8 @@ class WiFiClass : public MbedSocketClass {
168
169
unsigned long getTime();
170
171
+ void setTimeout(unsigned long timeout);
172
173
friend class WiFiClient;
174
friend class WiFiServer;
175
friend class WiFiUDP;
0 commit comments