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
{{ message }}
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+23-11Lines changed: 23 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,13 @@ To configure the example application, please:
39
39
40
40
### Connection type
41
41
42
-
The application uses Ethernet as the default connection type. To change the connection type, set one of them as defined and all the rest as undefined in the beginning of the `main.cpp` file. For example, to enable 6LoWPAN ND mode:
42
+
The application uses Ethernet as the default connection type. To change the connection type, set one of them in `mbed_app.json`. For example, to enable 6LoWPAN ND mode:
43
43
44
44
```
45
-
#undef ETHERNET
46
-
#undef WIFI
47
-
#undef CELLULAR
48
-
#define MESH_LOWPAN_ND
49
-
#undef MESH_THREAD
45
+
"network-interface":{
46
+
"help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD.",
47
+
"value": "MESH_LOWPAN_ND"
48
+
},
50
49
```
51
50
52
51
### Client credentials
@@ -122,11 +121,24 @@ The example application uses ESP8266 WiFi Interface for managing the wireless co
122
121
1. Have [ESP8266](https://en.wikipedia.org/wiki/ESP8266) WiFi module running [Espressif Firmware](https://codeload.github.com/espressif/ESP8266_AT/zip/master)
123
122
1. Mount WiFi module onto [K64F Grove Shield v2](https://developer.mbed.org/platforms/FRDM-K64F/#supported-seeed-studio-grove-extension)
124
123
1. Attach the shield on the K64F board.
125
-
1. In the `main.cpp` file:
126
-
- set WIFI as defined and other connection types as undefined.
127
-
- remove `#error "Remember to provide your WiFi credentials and provide in esp.connect("ssid","password");"`
128
-
-`esp.connect("ssid", "password");` , replace `ssid` and `password` with your WiFi SSID and WiFi password respectively.
129
-
124
+
1. In the `mbed_app.json` file, change
125
+
```
126
+
"network-interface":{
127
+
"help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD.",
0 commit comments