You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/api/connectivity/networksocket/networkinterface.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ For example, when providing Wi-Fi SSID and password, you may use the following `
52
52
53
53
Please see [Selecting the default network interface](configuration-connectivity.html#selecting-the-default-network-interface) for information about how to supply required configuration parameters on different connections.
54
54
55
-
Targets with connectivity set the `target.network-default-interface-type` configuration variable appropriately, either to their only interface or their most-commonly-used one. For targets that provide more than one type of connectivity, you may choose the default by overriding the `target.network-default-interface-type` configuration variable.
55
+
Targets with connectivity set the `target.network-default-interface-type` configuration variable appropriately, either to their only interface or the one mostcommonly used. For targets that provide more than one type of connectivity, you may choose the default by overriding the `target.network-default-interface-type` configuration variable.
56
56
57
57
Applications may also ask for a specific type of connection, as the following table shows:
58
58
@@ -64,11 +64,12 @@ Applications may also ask for a specific type of connection, as the following ta
|`*NetworkInterface::get_default_instance()`| One of the above, depending on `target.network-default-interface-type`||
66
66
67
-
Note that the calls for a specific interface type do not preconfigure credentials such as SSID, as an interface-type-specific application is expected to configure these in code. NULL will be returned if no interface of that type is available.
67
+
Note that the calls for a specific interface type do not preconfigure credentials such as SSID because an interface-type-specific application is expected to configure these in code. `NULL` is returned if no interface of that type is available.
68
68
69
-
Calls for a NetworkInterface will request one of the interface types depending on target.default-network-interface-type, and preconfigure the credentials. If credentials can't be preconfigured (for example because nsapi.default-wifi-ssid isn't set), the call returns NULL rather than an unconfigured interface.
69
+
Calls for a NetworkInterface will request one of the interface types depending on `target.default-network-interface-type`, and preconfigure the credentials. If credentials can't be preconfigured (for example because `nsapi.default-wifi-ssid` isn't set), the call returns `NULL` rather than an unconfigured interface.
70
+
71
+
An application may check the type of the interface returned by `NetworkInterface::get_default_instance()` by using the "dynamic downcast" methods:
70
72
71
-
An application may check the type of the interface returned by NetworkInterface::get_default_instance() by using the "dynamic downcast" methods:
72
73
```
73
74
// net set from NetworkInterface::get_default_instance() as above
0 commit comments