Skip to content

RTC, TIME, NTP on ESP32-S2 #3321

Closed
Closed
@askpatrickw

Description

@askpatrickw

It does not look like you can manage or use any system time without RTC.

Note: This is the lowest level dependency as I work up the stack to using the Azure IoT Library.

Board: FeatherS2
Build: 08-23-2020 Code built locally

>>> from adafruit_ntp import NTP
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_ntp.py", line 40, in <module>
ImportError: no module named 'rtc'

>>> import time
>>> time.time()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: RTC is not supported on this board

>>> help("modules")
__main__          displayio         microcontroller   storage
_os               errno             micropython       struct
_pixelbuf         espidf            neopixel_write    supervisor
_time             fontio            os                sys
array             framebufferio     pulseio           terminalio
bitbangio         gamepad           random            time
board             gc                re                touchio
builtins          io                sdcardio          ulab
busio             ipaddress         sharpdisplay      usb_hid
collections       json              socketpool        vectorio
digitalio         math              ssl               wifi
Plus any modules on the filesystem

Espressif IDF on RTC and System Time

https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/system/system_time.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    espressifapplies to multiple Espressif chips

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions