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

Commit

Permalink
Added thread and 6LoWPAN flags to MACROS.txt. (#1)
Browse files Browse the repository at this point in the history
Added thread and 6LoWPAN flags to MACROS.txt.
Added define for connector address to MACROS.txt.

* Changed 6LoWPAN channel to 12
  • Loading branch information
Tero Heinonen committed May 31, 2016
1 parent c647a24 commit de6d545
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions MACROS.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
TARGET_LIKE_MBED
YOTTA_CFG_MBED_TRACE
YOTTA_CFG_DEVICE_CONNECTOR_URI="coaps://[2607:f0d0:2601:52::20]:5684"
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL_MASK=(1<<12)
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL_PAGE=0
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL=12
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE=NONE
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_PSK_KEY_ID=1
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_PSK_KEY={0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf}
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_SEC_LEVEL=5
YOTTA_CFG_MBED_MESH_API_THREAD_PSKD="Secret password"
YOTTA_CFG_MBED_MESH_API_THREAD_DEVICE_TYPE=MESH_DEVICE_TYPE_THREAD_ROUTER
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_CHANNEL_MASK=0x07fff800
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_CHANNEL_PAGE=0
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_CHANNEL=12
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_PANID=0xDEFA
YOTTA_CFG_MBED_MESH_API_THREAD_MASTER_KEY={0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_ML_PREFIX={0xfd, 0x00, 0x0d, 0xb8, 0x00, 0x00, 0x00, 0x00}
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_PSKC={0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}
2 changes: 1 addition & 1 deletion simpleclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
M2MInterface::BindingMode SOCKET_MODE = M2MInterface::UDP;

// This is address to mbed Device Connector
const String &MBED_SERVER_ADDRESS = "coap://api.connector.mbed.com:5684";
const String &MBED_SERVER_ADDRESS = YOTTA_CFG_DEVICE_CONNECTOR_URI;

// These come from the security.h file copied from connector.mbed.com
const String &MBED_USER_NAME_DOMAIN = MBED_DOMAIN;
Expand Down

0 comments on commit de6d545

Please sign in to comment.