Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
4 years, 11 months ago.
mbed client - "api.connector.mbed.com:5684" resolves to "184.108.40.206,53" - how to set DNS?
I am using a Nucleo-L152RE with a SIM808 GSM Board to connect to mbed device connector.
I adapted the simple client example (https://github.com/ARMmbed/mbed-client-quickstart/blob/master/source/main.cpp) to work with my mbed hardware.
Unsecure connection to device connector work like a charm but only if I hardcode the IP address (#define MBED_SERVER_ADDRESS "coap:220.127.116.11:5684)
Though if I use #define MBED_SERVER_ADDRESS "coap:api.connector.mbed.com:5684" (as stated in the example) the address maps to "18.104.22.168,53" and obviously I am not able to connect.
Any idea on how to change this behaviour?
Thanks for any advise!