SIM800L Date and Time is not working. How to convert from int to string?

289 Views Asked by At

I am currently working on a device and it sends data to Firebase. Unfortunately, I am unable to send the correct time and date.

CONVERT TIME INT TO STRING

I tried setting the time but it ignores the changes.

AT+CLTS=1 should enable network time sync. AT+CLTS? will check if it is set. AT&W should save the setting in permanent memory. AT+CCLK? should display the correct time in the end.

SET TIME AND NETWORK TIME NOT WORKING

1

There are 1 best solutions below

0
On

The AT&W command most likely does not save gsm network settings .

String arguments to at commands must be enclosed with double quotes, e.g. AT+CCLK="...".