Skip to content

mbed-mesh-api: add JSON help #6092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 100 additions & 25 deletions features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,105 @@
{
"name": "mbed-mesh-api",
"config": {
"heap-size": 32500,
"use-malloc-for-heap": false,
"6lowpan-nd-channel-mask": "0x7fff800",
"6lowpan-nd-channel-page": 0,
"6lowpan-nd-channel": 0,
"6lowpan-nd-panid-filter": "0xffff",
"6lowpan-nd-security-mode": "NONE",
"6lowpan-nd-psk-key-id": 1,
"6lowpan-nd-psk-key": "{0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf}",
"6lowpan-nd-sec-level": 5,
"6lowpan-nd-device-type": "NET_6LOWPAN_ROUTER",
"thread-pskd": "\"ABCDEFGH\"",
"thread-use-static-link-config": true,
"thread-config-channel-mask": "0x7fff800",
"thread-config-channel-page": 0,
"thread-config-channel": 22,
"thread-config-panid": "0x0700",
"thread-config-network-name": "\"Thread Network\"",
"thread-config-commissioning-dataset-timestamp": "0x10000",
"thread-config-extended-panid": "{0xf1, 0xb5, 0xa1, 0xb2,0xc4, 0xd5, 0xa1, 0xbd }",
"thread-master-key": "{0x10, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}",
"thread-config-ml-prefix": "{0xfd, 0x0, 0x0d, 0xb8, 0x0, 0x0, 0x0, 0x0}",
"thread-config-pskc": "{0xc8, 0xa6, 0x2e, 0xae, 0xf3, 0x68, 0xf3, 0x46, 0xa9, 0x9e, 0x57, 0x85, 0x98, 0x9d, 0x1c, 0xd0}",
"thread-device-type": "MESH_DEVICE_TYPE_THREAD_ROUTER",
"thread-security-policy": 255
"heap-size": {
"help": "Nanostack's heap size (bytes: 0-65534)",
"value": 32500
},
"use-malloc-for-heap": {
"help": "Use `malloc()` for reserving the internal heap.",
"value": false
},
"6lowpan-nd-channel-mask": {
"help": "Channel mask, bit mask of channels to use.",
"value": "0x7fff800"
},
"6lowpan-nd-channel-page": {
"help": "0 for 2.4 GHz and 2 for sub-GHz radios.",
"value": 0
},
"6lowpan-nd-channel": {
"help": "RF channel to use when `channel_mask` is not defined (0-26).",
"value": 0
},
"6lowpan-nd-panid-filter": {
"help": "Beacon PAN ID filter, 0xffff means no filtering.",
"value": "0xffff"
},
"6lowpan-nd-security-mode": {
"help": "NONE or PSK to use either no security, or pre-shared network key.",
"value": "NONE"
},
"6lowpan-nd-psk-key-id": {
"help": "PSK key ID when PSK is enabled.",
"value": 1
},
"6lowpan-nd-psk-key": {
"help": "Pre-shared network key.",
"value": "{0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf}"
},
"6lowpan-nd-sec-level": {
"help": "Network security level (1-7). Use default `5`.",
"value": 5
},
"6lowpan-nd-device-type": {
"help": "Device mode (NET_6LOWPAN_ROUTER or NET_6LOWPAN_HOST). Router is routing packets from other device, creating a mesh network.",
"value": "NET_6LOWPAN_ROUTER"
},
"thread-pskd": {
"help": "Human-scaled commissioning credentials. Uppercase alphanumeric string (0-9, A-Y excluding I, O, Q and Z), 6-32 characters.",
"value": "\"ABCDEFGH\""
},
"thread-use-static-link-config": {
"help": "True: Use the below link config, False: Use commissioning, ignore the below link config.",
"value": true
},
"thread-config-channel-mask": {
"help": "Channel mask, 0x7ffff800 scans all channels.",
"value": "0x7fff800"
},
"thread-config-channel-page": {
"help": "Channel page, 0 for 2.4 GHz radio.",
"value": 0
},
"thread-config-channel": {
"help": "RF channel to use. (11-26)",
"value": 22
},
"thread-config-panid": {
"help": "Network identifier (0-0xFFFF)",
"value": "0x0700"
},
"thread-config-network-name": {
"help": "Network name (max 16 characters)",
"value": "\"Thread Network\""
},
"thread-config-commissioning-dataset-timestamp": {
"help": "[48 bit timestamp seconds]-[15 bit timestamp ticks]-[U bit] (0-0xFFFFFFFFFFFFFFFF)",
"value": "0x10000"
},
"thread-config-extended-panid": {
"help": "Extended PAN ID.",
"value": "{0xf1, 0xb5, 0xa1, 0xb2,0xc4, 0xd5, 0xa1, 0xbd }"
},
"thread-master-key": {
"help": "Network master key.",
"value": "{0x10, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}"
},
"thread-config-ml-prefix": {
"help": "Mesh Local prefix.",
"value": "{0xfd, 0x0, 0x0d, 0xb8, 0x0, 0x0, 0x0, 0x0}"
},
"thread-config-pskc": {
"help": "Pre-Shared Key for the Commissioner.",
"value": "{0xc8, 0xa6, 0x2e, 0xae, 0xf3, 0x68, 0xf3, 0x46, 0xa9, 0x9e, 0x57, 0x85, 0x98, 0x9d, 0x1c, 0xd0}"
},
"thread-device-type": {
"help": "Supported device operating modes: MESH_DEVICE_TYPE_THREAD_ROUTER, MESH_DEVICE_TYPE_THREAD_SLEEPY_END_DEVICE, MESH_DEVICE_TYPE_THREAD_MINIMAL_END_DEVICE",
"value": "MESH_DEVICE_TYPE_THREAD_ROUTER"
},
"thread-security-policy": {
"help": "Commissioning security policy bits (0-0xFF)",
"value": 255
}
}
}