Xinyuan-LilyGO / LilyGo-T-Call-SIM800

https://www.aliexpress.com/item/33045221960.html
482 stars 239 forks source link

Add example to retrieve the network time #82

Closed rgl closed 4 years ago

rgl commented 4 years ago

It would be useful to have an example on how to get the network time. It seems it can de done with:

https://github.com/vshymanskyy/TinyGSM/blob/cddd356d0cca698ffcd324c0ca4702c1b92a2142/src/TinyGsmClientSIM800.h#L46

Can we have an example of that? I can even try to include it in https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800/tree/master/examples/Arduino_TinyGSM if you would accept the PR and think its a good idea :-)

Showing a way to get the network time would be really useful, because the board does not have an RTC.

peterchs commented 4 years ago

Did you look at the tinyGSM examples?

E.g. https://github.com/vshymanskyy/TinyGSM/blob/cddd356d0cca698ffcd324c0ca4702c1b92a2142/examples/AllFunctions/AllFunctions.ino#L404

rgl commented 4 years ago

I did, I thought this was a normal thing to do when we use this module that it would make sense to pull that example to this repository. But, I'm not sure anymore. So I'll close this. Sorry for the trouble.