diff --git a/README.md b/README.md index 967cdbf..cb75747 100644 --- a/README.md +++ b/README.md @@ -95,12 +95,16 @@ future bootups. ## Running demo 1. Change branche to `btt_demo` 2. Setup workspace: `mbed deploy` -3. Change your device `endpoint_name` in `mbed_app.json` +3. Change your +3. Set/change following configs in `mbed_app.json`: + - device `endpoint_name` to `urn:dev:os:XXXXXXXXXXX` + - set `psk_identity` to the same value as in `endpoint_name` + - `psk_key` to any key you want to use or use existing 4. Mock custom board: `mbedls --mock 0828:BT_01001_V0_2` 5. If using mbed-os 5.X apply AT_Handler patch from https://github.com/Waleed-Elmughrabi/BTTM-IOT-NODE-Master 6. Build&flash: `mbed compile -m BT_01001_V0_2 --profile debug --flash` 7. Add device to Coiote Device Management * Go to Device Inventory, click `+ Add device` button - * Than Connect your LwM2M device via via the Management server: set `endpoint_name` as `Device ID`, any `Friendly name`, and `Security mode` as `NoSec` than click `Add device` + * Than Connect your LwM2M device via via the Management server: set `endpoint_name` as `Device ID`, and set `Friendly name`, and set `Security mode` as `PSK` and set `psk_identity` as `Key Identity` and set `psk_key` as `Key` than click `Add device` * Flash device and wait until it get connected then move to next step 8. You have connected device diff --git a/mbed_app.json b/mbed_app.json index 46b58bc..b6c7a5a 100644 --- a/mbed_app.json +++ b/mbed_app.json @@ -47,18 +47,16 @@ } }, "config": { - "endpoint_name": "\"urn:dev:os:BTT_non_secure_01\"", - "__endpoint_name": "\"urn:dev:os:BTT_secure_01\"", + "endpoint_name": "\"urn:dev:os:BTT_secure_01\"", "rg_nosec_addr": "\"coap://lwm2m-test.avsystem.io:5683\"", "rg_dtls_addr": "\"coaps://lwm2m-test.avsystem.io:5684\"", "bs_nosec_addr": "\"coap://lwm2m-test.avsystem.io:5693\"", "bs_dtls_addr": "\"coaps://lwm2m-test.avsystem.io:5684\"", "with_rg_server": true, "with_bs_server": false, - "with_dtls": false, - "psk_identity": "\"urn:dev:os:BTT_non_secure_01\"", - "__psk_identity": "\"urn:dev:os:BTT_secure\"", - "psk_key": "\"11111111111111111111111111111111111111111111111111111111111111\"", + "with_dtls": true, + "psk_identity": "\"urn:dev:os:BTT_secure_01\"", + "psk_key": "\"111111111111111111111111\"", "serial_menu_echo": true } }