Wiki source code of How to use Domain Name instead of IP address in Server Address
Last modified by Xiaoling on 2023/04/21 11:59
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.3 | 1 | ((( |
![]() |
4.2 | 2 | (% style="color:blue" %)**Note when using MQTT:** |
![]() |
1.3 | 3 | ))) |
![]() |
1.1 | 4 | |
![]() |
1.3 | 5 | ((( |
![]() |
4.7 | 6 | **1)(% style="color:#037691" %)AT+CLIENT (%%)**cannot be set to NULL |
![]() |
1.3 | 7 | ))) |
![]() |
1.1 | 8 | |
![]() |
1.3 | 9 | ((( |
![]() |
4.7 | 10 | **2) (% style="color:#037691" %)AT+SERVADDR(%%)** length should not exceed 21 bytes |
![]() |
1.3 | 11 | ))) |
![]() |
1.1 | 12 | |
![]() |
1.3 | 13 | ((( |
![]() |
4.6 | 14 | **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. |
![]() |
4.2 | 15 | |
16 | |||
![]() |
1.3 | 17 | ))) |
![]() |
1.1 | 18 | |
![]() |
1.3 | 19 | ((( |
![]() |
4.7 | 20 | If you don't know the domain name IP, you can enter the command (% style="color:#037691" %)**AT+QNDS **(%%)to resolve the domain name when it is not working (this process may take a long time). |
![]() |
4.2 | 21 | |
![]() |
4.3 | 22 | |
![]() |
4.2 | 23 | (% style="color:blue" %)**Example:** |
24 | |||
25 | [[image:image-20220722171355-1.png]] | ||
![]() |
1.3 | 26 | ))) |
![]() |
1.1 | 27 | |
![]() |
4.2 | 28 |