Search found 81 matches

by guyd
Tue Jul 24, 2018 1:13 pm
Forum: Programs, Libraries and Tools
Topic: MicroPython IDE
Replies: 13
Views: 20256

MicroPython IDE

Hi,
Since coding using VIM, rshell it to pyboard to debug it quite tiring, I'm looking for IDE for linux.
Guy
by guyd
Tue Jul 24, 2018 1:10 pm
Forum: ESP32 boards
Topic: recursive clock uopdate - ESP32
Replies: 6
Views: 1197

Re: recursive clock uopdate - ESP32

It won't cause problems with official uasyncio as it does not use the RTC as its timebase. But if your own code checks for a time of (say) 3.10.00 to trigger an event, you could have a problem. Say the RTC time was 3.09.55 and an update caused it to be corrected to 3.10.05 the time of 3.10.00 would...
by guyd
Tue Jul 24, 2018 6:58 am
Forum: ESP32 boards
Topic: Installing libraries on ESP32
Replies: 14
Views: 7339

Re: Installing libraries on ESP32

You should be able to install it using upip as described. What happens when you try? Alternatively just copy datetime.py from micropython-lib to the ESP32: this should work as it's a simple library comprising just that one file. I have a clone of micropython-lib on my local hardware for such purpos...
by guyd
Tue Jul 24, 2018 6:50 am
Forum: ESP32 boards
Topic: recursive clock uopdate - ESP32
Replies: 6
Views: 1197

Re: recursive clock uopdate - ESP32

I can see no particular resource problem with periodically running ntptime.settime() There is probably no alternative as NTP is likely to be your only source of an accurate reference. However you do have to be careful about updating a clock which is being used to schedule events. This is because yo...
by guyd
Tue Jul 24, 2018 4:48 am
Forum: ESP32 boards
Topic: Installing libraries on ESP32
Replies: 14
Views: 7339

Installing libraries on ESP32

Hi,
I'm interested in installing additional module from https://github.com/micropython/micropython-lib
but- I guess I don't understand explanation at the bottom of the page.

im looking for - `datetime` replacement

Guy
by guyd
Mon Jul 23, 2018 6:55 am
Forum: ESP32 boards
Topic: recursive clock uopdate - ESP32
Replies: 6
Views: 1197

recursive clock uopdate - ESP32

Hi,

My device, based on ESP32 with Micropython, needs a RTC to run scheduled tasks.
Using

Code: Select all

import ntptime
ntptime.settime()
RTC is updating, but I wish to update it every several time. Since it is not Linux, or Python - I wish to do so with minimum resources.
what is best for that ?

Guy
by guyd
Mon Jul 23, 2018 4:35 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 3317

Re: MQTT for MicroPython under ESP32

Worked OK :)
by guyd
Sun Jul 22, 2018 5:39 pm
Forum: ESP32 boards
Topic: ESP32 - update clock after boot
Replies: 11
Views: 2904

Re: ESP32 - update clock after boot

There is primitive NTP support in the ESP32 port (borrowed from the ESP8266 port). In short: import ntptime ntptime.settime() # Synchronise the system time using NTP Caveat: There is no timezone support so the system time will be set to UTC. Does ntptime module supported in Micropython or is it app...
by guyd
Sun Jul 22, 2018 11:28 am
Forum: General Discussion and Questions
Topic: MQTT for MicroPython under ESP32
Replies: 14
Views: 3317

Re: MQTT for MicroPython under ESP32

Hi,
I need that ESP32 device be able to get published messages ( perhaps calling it - close socket is not the exact term ).
Write code as suggested will do so?
by guyd
Sun Jul 22, 2018 10:35 am
Forum: ESP32 boards
Topic: MicroPython - ESP32 - Is is possible to update files?
Replies: 15
Views: 3335

Re: MicroPython - ESP32 - Is is possible to update files?

Not one that I know of