Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit f27ad1a

Browse files
committed
Added json tags where relevant
1 parent 9c8342b commit f27ad1a

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

README.md

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ To configure the example application, please:
4141

4242
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:
4343

44-
```
45-
"network-interface":{
46-
"help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD.",
47-
"value": "MESH_LOWPAN_ND"
48-
},
44+
```json
45+
"network-interface": {
46+
"help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD.",
47+
"value": "MESH_LOWPAN_ND"
48+
}
4949
```
5050

5151
### Client credentials
@@ -81,20 +81,20 @@ You can view debug traces from the gateway with a serial port monitor. The gatew
8181

8282
The default 2.4GHz channel settings are already defined by the [mbed-mesh-api](https://github.com/ARMmbed/mbed-mesh-api) to match the mbed gateway settings. The application can override these settings by adding them to the `mbed_app.json` file in the main project directory. For example:
8383

84-
```
85-
"target_overrides": {
86-
"*": {
87-
"mbed-mesh-api.6lowpan-nd-channel-page": 0,
88-
"mbed-mesh-api.6lowpan-nd-channel": 12,
89-
"mbed-mesh-api.thread-config-channel-page": 0,
90-
"mbed-mesh-api.thread-config-channel": 12
91-
}
92-
}
84+
```json
85+
"target_overrides": {
86+
"*": {
87+
"mbed-mesh-api.6lowpan-nd-channel-page": 0,
88+
"mbed-mesh-api.6lowpan-nd-channel": 12,
89+
"mbed-mesh-api.thread-config-channel-page": 0,
90+
"mbed-mesh-api.thread-config-channel": 12
91+
}
92+
}
9393
```
9494

9595
For sub-GHz shields (AT86RF212B) use the following overrides, **6LoWPAN ND only**:
9696

97-
```
97+
```json
9898
"mbed-mesh-api.6lowpan-nd-channel-page": 2,
9999
"mbed-mesh-api.6lowpan-nd-channel": 1
100100
```
@@ -105,8 +105,8 @@ For more information about the radio shields, see [the related documentation](do
105105

106106
With Thread, you can change the operating mode of the client from the default router mode to a sleepy end device by adding the following override to the `mbed_app.json` file:
107107

108-
```
109-
"mbed-mesh-api.thread-device-type": "MESH_DEVICE_TYPE_THREAD_SLEEPY_END_DEVICE"
108+
```json
109+
"mbed-mesh-api.thread-device-type": "MESH_DEVICE_TYPE_THREAD_SLEEPY_END_DEVICE"
110110
```
111111

112112
### Ethernet settings
@@ -125,23 +125,22 @@ The example application uses ESP8266 WiFi Interface for managing the wireless co
125125
1. Mount the WiFi module onto [K64F Grove Shield v2](https://developer.mbed.org/platforms/FRDM-K64F/#supported-seeed-studio-grove-extension)
126126
1. Attach the shield on the K64F board.
127127
1. In the `mbed_app.json` file, change
128-
```
128+
```json
129129
"network-interface": {
130130
"help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD.",
131131
"value": "WIFI"
132-
},
132+
}
133133
```
134134

135135
1. Provide your WiFi SSID and password here, remember to leave `\"` in the beginning and end of your SSID and password(as shown in the example below), else example will not be able to pick up the SSID and password in correct format.
136-
```
136+
```json
137137
"wifi-ssid": {
138138
"help": "WiFi SSID",
139-
"value": "\"SSID\""
140-
},
141-
"wifi-password": {
142-
"help": "WiFi Password",
143-
"value": "\"Password\""
144-
}
139+
"value": "\"SSID\""
140+
},
141+
"wifi-password": {
142+
"help": "WiFi Password",
143+
"value": "\"Password\""
145144
}
146145
```
147146

0 commit comments

Comments
 (0)