at哪条指令能够获取网络时间,命令找不到
Posted: Wed Mar 02, 2022 9:09 am
我使用这个指令:
AT+CIPSNTPTIME?
返回时间不对
AT+CIPSNTPTIME?
返回时间不对
Code: Select all
AT+CWMODE=1
AT+CWJAP="1234567890","1234567890"
AT+CIPSNTPCFG=1,8,"cn.ntp.org.cn","ntp.sjtu.edu.cn"
AT+CIPSNTPTIME?
+CIPSNTPTIME:Tue Oct 19 17:47:56 2021
OK
或
AT+CWMODE=1
AT+CWJAP="1234567890","1234567890"
AT+CIPSNTPCFG=1,530
AT+CIPSNTPTIME?
+CIPSNTPTIME:Tue Oct 19 15:17:56 2021
OK
ESP_Sun wrote: ↑Wed Mar 02, 2022 9:29 am你设置的时区和 SNTP server 是什么?(AT+CIPSNTPCFG 命令)
使用示例:Code: Select all
AT+CWMODE=1 AT+CWJAP="1234567890","1234567890" AT+CIPSNTPCFG=1,8,"cn.ntp.org.cn","ntp.sjtu.edu.cn" AT+CIPSNTPTIME? +CIPSNTPTIME:Tue Oct 19 17:47:56 2021 OK 或 AT+CWMODE=1 AT+CWJAP="1234567890","1234567890" AT+CIPSNTPCFG=1,530 AT+CIPSNTPTIME? +CIPSNTPTIME:Tue Oct 19 15:17:56 2021 OK