Search found 17 matches

by Primesty
Sat Aug 08, 2020 1:03 pm
Forum: General Discussion and Questions
Topic: Date conversion Y-m-d H:i:s to epoch
Replies: 3
Views: 232

Re: Date conversion Y-m-d H:i:s to epoch

Hi, this might be a little tangential, but still related I'm querying an API and get a timestamp as a string returned in a JSON object - I'm using ujson to parse the JSON data and end up with a string like this: '2020-08-08T13:16:00Z' How can I reformat this into something more legible and, more imp...
by Primesty
Sat Aug 08, 2020 12:54 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 26
Views: 1204

Re: uasyncio - How detect the end task in another task.

Gotcha, I removed the dangling main() function call

Also, the above error has resolved itself and now it's running smoothly, which means I can now move on to handling the rotary encoder or displaying the temperature.
by Primesty
Fri Aug 07, 2020 8:16 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 26
Views: 1204

Re: uasyncio - How detect the end task in another task.

Hi Pete, I got my system up and running again :) I've successfully implemented code that blinks the led *and* reads the temperature at the same time according to your specs and tutorial. One question popped up. When I run this: from machine import Pin, Timer, I2C import dht import time import uasync...
by Primesty
Thu Aug 06, 2020 10:39 pm
Forum: ESP32 boards
Topic: ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6
Replies: 1
Views: 518

Re: ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6

I'll reply myself and tell you what I did to get the system running again... You can pretty much follow the thread here: https://www.silabs.com/community/interface/forum.topic.html/cp210x_usb_to_uartbridgevcpdriversnotworking-sYsz And I found some useful tips here as well https://www.silabs.com/comm...
by Primesty
Sun Aug 02, 2020 9:40 pm
Forum: ESP32 boards
Topic: ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6
Replies: 1
Views: 518

ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6

Hi, I'm sure I'm not the only MAC user who is affected by this. Has anyone found a work-around? The UART bridge has been working fine with uPyCraft and connections to ESP8266/32. However with the latest update to OS Catalina 10.15.6 on Friday 2020-07-31, nothing works anymore. I can't access any of ...
by Primesty
Sat Aug 01, 2020 3:04 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 26
Views: 1204

Re: uasyncio - How detect the end task in another task.

Gotcha! Thanks for the input - once I have my drivers up and running again - I'll continue building the coros.
by Primesty
Fri Jul 31, 2020 7:51 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 26
Views: 1204

Re: uasyncio - How detect the end task in another task.

Hi Peter! I was able to re-write the code according to your tutorial so that it's not legacy anymore: from machine import Pin, Timer, I2C import dht import time import uasyncio import gc from my_app import temp_reader led = Pin(2, Pin.OUT) def set_global_exception(): def handle_exception(loop, conte...
by Primesty
Tue Jul 28, 2020 2:07 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 26
Views: 1204

Re: uasyncio - How detect the end task in another task.

Will do and re-write according to the tutorial!
by Primesty
Mon Jul 27, 2020 9:50 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 26
Views: 1204

Re: uasyncio - How detect the end task in another task.

Awesome! I've installed esp32-idf3-20200727-unstable-v1.12-662-g8da40baa4.bin and *uasyncio* worked right out of the box and I'm getting version 3.0.0! The blink example runs fine now on the bread-board with i2c ports connected as well as GPIO 14 for the DHT22 sensor. from machine import Pin, Timer,...
by Primesty
Mon Jul 27, 2020 1:35 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 26
Views: 1204

Re: uasyncio - How detect the end task in another task.

Gotcha! Yeah, like you said, I didn't get a version number. As for firmware, I'm currently running esp32-idf3-20191220-v1.12.bin I understand other builds are available here http://micropython.org/download/esp32/ right? For a daily build, do I essentially pick one of the unstable ones? What is the d...