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

Commit 066035d

Browse files
authored
Merge branch 'master' into dyn_gw_update
2 parents a12d017 + 88c1ce0 commit 066035d

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,29 +79,35 @@ You can view debug traces from the gateway with a serial port monitor. The gatew
7979

8080
#### Channel settings
8181

82-
In 6LoWPAN ND and Thread mode, you need to set the channel settings to match the mbed gateway settings. Channel settings can be found in the `MACROS.txt` file. For 2.4GHz shields (AT86RF233), use the following values:
82+
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

8484
```
85-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL_PAGE=0
86-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL=12
87-
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_CHANNEL_PAGE=0
88-
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_CHANNEL=12
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+
}
8993
```
9094

91-
Values for sub-GHz shields (AT86RF212B), **6LoWPAN ND only**:
95+
For sub-GHz shields (AT86RF212B) use the following overrides, **6LoWPAN ND only**:
9296

9397
```
94-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL_PAGE=2
95-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL=1
98+
"mbed-mesh-api.6lowpan-nd-channel-page": 2,
99+
"mbed-mesh-api.6lowpan-nd-channel": 1
96100
```
97101

98-
For more information about the radio shields, see [the related documentation](docs/radio_module_identify.md).
102+
For more information about the radio shields, see [the related documentation](docs/radio_module_identify.md). All the configurable settings can be found in the `mbed-client-quickstart-morpheus/mbed-os/net/mbed-mesh-api/mbed_lib.json` file.
99103

100104
#### Thread-specific settings
101105

102-
With Thread, you can change the operating mode of the device between a router and a sleepy end device as follows:
106+
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:
103107

104-
In the `MACROS.txt` file, change the `YOTTA_CFG_MBED_MESH_API_THREAD_DEVICE_TYPE` to either `MESH_DEVICE_TYPE_THREAD_ROUTER` or `MESH_DEVICE_TYPE_THREAD_SLEEPY_END_DEVICE`.
108+
```
109+
"mbed-mesh-api.thread-device-type": "MESH_DEVICE_TYPE_THREAD_SLEEPY_END_DEVICE"
110+
```
105111

106112
### Ethernet settings
107113

0 commit comments

Comments
 (0)