GoogleCloudPlatform / iot-core-micropython

Apache License 2.0
52 stars 14 forks source link

add a small loop around settime as for the esp32 #15

Open sweeneyb opened 3 years ago

sweeneyb commented 3 years ago

ntptime.settime() sometimes fails when the board is just booted. This loop tries a few times and waits several seconds after a failure. Reading online, things tend to start working, which was my experience, too.