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.

[参考译文] CC3220MODA:使用不带网络的 RTC

Guru**** 2391415 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/723008/cc3220moda-using-rtc-without-network

器件型号:CC3220MODA

您好!

我正在开发一款允许用户选择性地配置网络的器件。  如果不使用网络、则允许用户手动设置日期/时间。   

使用 SL_DEVICE_General_DATE_TIME 和 SL_DeviceSet 设置日期/时间的最佳做法是什么?  当我使用 sl_Start()时,它会启动配置过程,但我并不总是希望这样做。  绕过所有网络启动并启动处理器以使用 RTC 的最佳方法是什么?

谢谢!

Joe K.

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

    在使用任何其他 SimpleLink API 之前必须调用 sl_Start(),它会启用 NWP。 但是、如果要在不启动配置过程的情况下启用它、只需将三个参数设置为 NULL:
    SL_Start (NULL、NULL、NULL);
    然后您可以调用 sl_DeviceSet()并设置日期/时间

    谢谢、
    Alexis