Wiki source code of How to use Domain Name instead of IP address in Server Address
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Note when using MQTT:** | ||
2 | |||
3 | 1)AT+CLIENT cannot be set to NULL | ||
4 | |||
5 | 2) AT+SERVADDR length should not exceed 21 bytes | ||
6 | |||
7 | 3) It is not recommended to use a domain name, as it will take a long time for the MQTT service to resolve the domain name for the first time and increase power consumption. It is recommended to use IP instead of domain name. | ||
8 | |||
9 | If you don’t know the domain name IP, you can enter the command AT+QNDS to resolve the domain name when it is not working (this process may take a long time) | ||
10 | |||
11 | [[image:https://wiki.dragino.com/images/thumb/6/6e/MQTT_BROKER.png/600px-MQTT_BROKER.png||height="159" width="600"]] | ||
12 | |||
13 | Example |