diff --git a/MACROS.txt b/MACROS.txt index 20ca598b4..b18254211 100644 --- a/MACROS.txt +++ b/MACROS.txt @@ -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} \ No newline at end of file diff --git a/simpleclient.h b/simpleclient.h index aefabfc90..5bee9d1be 100644 --- a/simpleclient.h +++ b/simpleclient.h @@ -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;