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 5a88ff9 + d03a1fa commit 8424becCopy full SHA for 8424bec
ESP8266Interface.cpp
@@ -575,3 +575,12 @@ nsapi_connection_status_t ESP8266Interface::get_connection_status() const
575
{
576
return _esp.get_connection_status();
577
}
578
+
579
+#if MBED_CONF_ESP8266_PROVIDE_DEFAULT
580
581
+WiFiInterface *WiFiInterface::get_default_instance() {
582
+ static ESP8266Interface esp();
583
+ return &esp;
584
+}
585
586
+#endif
mbed_lib.json
@@ -12,6 +12,10 @@
12
"debug": {
13
"help": "Enable debug logs",
14
"value": false
15
+ },
16
+ "provide-default": {
17
+ "help": "Provide default WifiInterface. [true/false]",
18
+ "value": false
19
20
},
21
"target_overrides": {
0 commit comments