ESP RMAKER TIME SYNC - Incorrect

JoshNOA
Posts: 25
Joined: Wed Aug 02, 2023 12:19 pm

ESP RMAKER TIME SYNC - Incorrect

Postby JoshNOA » Thu Nov 09, 2023 12:18 pm

Hi Guys,

So I have the time sync enabled for the rmaker_client, but when it goes online, its retrieving all zeros as unix time, giving me 1st Jan 1970 00:00:00, which is obviously wrong:

I (54120) esp_rmaker_param: Received params: {"Time":{"TZ":"Europe/London"}}
I (54120) esp_rmaker_time_service: Received value = Europe/London for Time - TZ
I (54127) esp_rmaker_time: Time not synchronised yet.
I (54130) esp_rmaker_time: The current time is: Thu Jan 1 00:01:11 1970 +0000[GMT], DST: No.
I (54141) esp_rmaker_param: Reporting params: {"Time":{"TZ-POSIX":"GMT0BST,M3.5.0/1,M10.5.0"}}
I (54152) esp_rmaker_param: Reporting params: {"Time":{"TZ":"Europe/London"}}

ESP_Piyush
Posts: 268
Joined: Wed Feb 20, 2019 7:02 am

Re: ESP RMAKER TIME SYNC - Incorrect

Postby ESP_Piyush » Thu Nov 09, 2023 12:49 pm

This print just indicates what the current time for the provided time zone is. As you can see it also says that time is not synchronised yet. Whenever the firmware gets the network time from SNTP, which should be within 30 seconds of connecting to the Internet, you should get a print like this:

I (8264) esp_rmaker_time: SNTP Synchronised.
I (8264) esp_rmaker_time: The current time is: Thu Nov 9 02:31:58 2023 +0800[CST], DST: No.

JoshNOA
Posts: 25
Joined: Wed Aug 02, 2023 12:19 pm

Re: ESP RMAKER TIME SYNC - Incorrect

Postby JoshNOA » Thu Nov 09, 2023 1:16 pm

Hi Pal,

Thanks for the clarification, Got it working as intended!

Best Wishes,

JC

Who is online

Users browsing this forum: No registered users and 38 guests