SNTP not working in ESP8266
SNTP not working in ESP8266
Postby exerion » Fri Aug 18, 2017 6:18 pm
I'm always getting the same result with the CIPSNTPTIME? command: "+CIPSNTPTIME:Thu Jan 01 00:00:00 1970".
It's using the default servers, and I tested them outside the ESP just to check conectivity. Servers are active and reachable.
ESP is correctly connected to Wifi, STA mode, etc. I have tried different steps, configurations, servers, etc. It's always returning the same time (epoch).
Any suggestion?
ESP info:
AT version:1.4.0.0(May 5 2017 16:10:59)
SDK version:2.1.0(116b762)
Re: SNTP not working in ESP8266
Postby ESP_Faye » Wed Aug 23, 2017 5:01 pm
You need to set the time zone first.
Code: Select all
AT+CIPSNTPCFG=1,8 //set time zone
If your problem is still unsolved, please feel free to let me know.
Sorry for the inconvenience.
Re: SNTP not working in ESP8266
Postby mobzero » Thu Jul 12, 2018 1:22 am
Even when i set the SNTP configuration by:
Code: Select all
AT+CIPSNTPCFG=1,8
OK
Code: Select all
AT+CIPSNTPCFG=1,8,"cn.ntp.org.cn","ntp.sjtu.edu.cn","us.pool.ntp.org"
OK
When i check the time, i always get this:
Code: Select all
AT+CIPSNTPTIME?
+CIPSNTPTIME:Thu Jan 01 00:00:00 1970
OK
Any suggestion? Thanks.
Re: SNTP not working in ESP8266
Postby mobzero » Fri Jul 20, 2018 11:27 pm
Thanks.
Re: SNTP not working in ESP8266
Postby anbly » Fri Mar 06, 2020 11:32 pm
ESP_Faye wrote:Hi,
You need to set the time zone first.Code: Select all
AT+CIPSNTPCFG=1,8 //set time zone
If your problem is still unsolved, please feel free to let me know.
Sorry for the inconvenience.
1.6的固件(esp-01s),设置时区之后依然获取到的只是初始时间
Who is online
Users browsing this forum: No registered users and 130 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.