Suraj Pal
/
U_Blox_DeviceConnector
U_Blox device connector
Fork of mbed-os-example-client by
Diff: main.cpp
- Revision:
- 42:d9a3043214a6
- Parent:
- 41:496e5ec1f1bd
- Child:
- 44:2b472e66a942
diff -r 496e5ec1f1bd -r d9a3043214a6 main.cpp --- 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);