This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC3220SF-LAUNCHXL:如何在 CC3220中使用 RTC

Guru**** 2551110 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/771966/cc3220sf-launchxl-how-to-use-rtc-in-cc3220

器件型号:CC3220SF-LAUNCHXL

您好!  

我将"simplelink_cc32xx_sdk_2_30_00_05"与 CC3220MODASF Launchpad 搭配使用。 我在"年/月/日/小时/分钟/秒"中有时间将其设置为 RTC、我尝试过

clock_settime (clock_realtime、ts);

此 API 需要以秒/ epoch 为单位的时间、但我有  以年/月/日期/小时/分钟/秒为单位的时间 如何转换?

"clock_gettime ()"将以秒为单位返回、即如何将相同值转换为"年/月/日期/小时/分钟/秒"?

我可以通过互联网上的 HTTP GET 呼叫在任何位置获取 epoch 时间吗?

我需要获取设备启动时的实时时间和/或设置 RTC 所需的时间。 只要我需要、就以 年/月/日/小时/分钟/秒格式读取 RTC 时间。

谢谢你