Search found 2 matches

by msinn
Sat Oct 05, 2019 8:50 am
Forum: General Discussion and Questions
Topic: MicroPython 1.11 panic'ed
Replies: 0
Views: 2044

MicroPython 1.11 panic'ed

Hi, last night I got a panic from MictoPython on a ESP32 board that was connected via to a Mac. I have no idea where it came from and what to do about it. Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception) Debug exception reason: BREAK instr Core 1 register dump: PC : 0x400803c0 PS :...
by msinn
Sun Jun 09, 2019 10:03 am
Forum: ESP8266 boards
Topic: Setting RTC From Internet?
Replies: 27
Views: 58888

Re: Setting RTC From Internet?

I found out, you can set the ntp host to use before calling settime():

Code: Select all

# set RTC from local ntp server
import ntptime

ntptime.host = '10.0.0.4'
try:
    ntptime.settime()
except:
    print('ERROR: Cannot set time via ntp')
(Sorry, BBCode ist disabled for me)