Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-client by
Diff: main.cpp
- Revision:
- 42:d9a3043214a6
- Parent:
- 41:496e5ec1f1bd
- Child:
- 44:2b472e66a942
--- a/main.cpp Sat Dec 10 22:30:09 2016 +0000 +++ b/main.cpp Sun Dec 11 08:15:09 2016 +0000 @@ -57,12 +57,13 @@ #endif //MBED_CONF_APP_RADIO_TYPE #endif //MESH -#ifndef MESH -// This is address to mbed Device Connector -#define MBED_SERVER_ADDRESS "coap://api.connector.mbed.com:5684" +#ifdef MESH + // Mesh does not have DNS, so must use direct IPV6 address + #define MBED_SERVER_ADDRESS "coaps://[2607:f0d0:2601:52::20]:5684" #else -// This is address to mbed Device Connector -#define MBED_SERVER_ADDRESS "coaps://[2607:f0d0:2601:52::20]:5684" + // This is address to mbed Device Connector, name based + // assume all other stacks support DNS properly + #define MBED_SERVER_ADDRESS "coap://api.connector.mbed.com:5684" #endif RawSerial output(USBTX, USBRX);