Skip to content

Commit cbb676c

Browse files
authored
Merge pull request #8060 from SeppoTakalo/documentation_update
Clarify test configuration in Socket/Networking test document
2 parents 6a34251 + 5e9fb0d commit cbb676c

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

TESTS/netsocket/README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ content at minimum:
234234

235235
```
236236
{
237+
"config": {
238+
"echo-server-addr" : {
239+
"help" : "IP address of echo server",
240+
"value" : "\"echo.mbedcloudtesting.com\""
241+
},
242+
"echo-server-port" : {
243+
"help" : "Port of echo server",
244+
"value" : "7"
245+
}
246+
},
237247
"macros": ["MBED_EXTENDED_TESTS"]
238248
}
239249
```
@@ -257,7 +267,7 @@ the `mbed_app.json` might look like this:
257267
"value": "\"password\""
258268
},
259269
"wifi-secure-protocol": {
260-
"help": "WiFi security protocol, valid values are WEP, WPA, WPA2, WPA/WPA2",
270+
"help": "WiFi security protocol, valid values are WEP, WPA, WPA2, WPA_WPA2",
261271
"value": "\"WPA2\""
262272
},
263273
"wifi-ch-secure": {
@@ -280,17 +290,6 @@ the `mbed_app.json` might look like this:
280290
"help": "How many networks may appear in Wifi scan result",
281291
"value": 30
282292
},
283-
"header-file": {
284-
"help" : "String for including your driver header file",
285-
"value" : "\"MyWifiInterface.h\""
286-
},
287-
"object-construction" : {
288-
"value" : "new MyWifiInterface()"
289-
},
290-
"connect-statement" : {
291-
"help" : "Must use 'net' variable name",
292-
"value" : "net->wifiInterface()->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA_WPA2)"
293-
},
294293
"echo-server-addr" : {
295294
"help" : "IP address of echo server",
296295
"value" : "\"echo.mbedcloudtesting.com\""
@@ -300,9 +299,18 @@ the `mbed_app.json` might look like this:
300299
"value" : "7"
301300
}
302301
},
303-
"macros": ["MBED_EXTENDED_TESTS"]
302+
"macros": ["MBED_EXTENDED_TESTS"],
303+
"target_overrides": {
304+
"*": {
305+
"target.network-default-interface-type": "WIFI",
306+
"nsapi.default-wifi-ssid": "\"WIFI_SSID\"",
307+
"nsapi.default-wifi-password": "\"WIFI_PASSWORD\"",
308+
"nsapi.default-wifi-security": "WPA_WPA2"
309+
}
310+
}
304311
}
305312
```
313+
See `mbed-os/tools/test_configs` folder for examples.
306314

307315
Now build test binaries:
308316

0 commit comments

Comments
 (0)