How to save the result of AT command on SIM800 module to use further

Hi there!

I have recently bought SIM800 module and have to use it for my IOT project in which I have to display time.

Hence I needed to save the result of "AT+CCLK?" in the format of hh:mm:ss in a variable which can be displayed further in the LCD screen.

I have got this result in the serial monitor by using AT command for getting local time.

AT
OK
AT+CCLK?

+CCLK: "19/01/17,23:12:52+22"

OK

I just want to save 23:12:52 in a variable.

Any hint or help is appreciated. :slight_smile:

Do not cross-post. Other thread removed.

.....Still waiting for answer

saif1786:
I just want to save 23:12:52 in a variable.

Try it yourself. If it doesn't work, post your code.