Search found 5 matches

by jameswise
Wed Jul 26, 2023 3:47 am
Forum: General Discussion and Questions
Topic: ESPNow send function
Replies: 2
Views: 34474

Re: ESPNow send function

ESPNow code runs in ESP8266, throws an error in ESP32. Code: eNow = espnow.ESPNow() enRcvr = b'\x01\x02\x03\x04\x05\x06' devState = bytes('On', 'ascii') ackRcvd = eNow.send(enRcvr,devState,True) This code snippet runs without error in an ESP8266 In an ESP32 it throws this error: Traceback (most rec...
by jameswise
Wed Aug 17, 2022 4:09 am
Forum: General Discussion and Questions
Topic: Interrupt handler for UART
Replies: 7
Views: 3817

Re: Interrupt handler for UART

Using mqtt simple and robust (original, not simple2 or robust2) if I send MQTT messages too fast I can flood the ESP01 or any ESP8266. Typically I get a recursive (stack exhausted) error, but this is misleading, because I am not using uasyncio, I think something is getting crushed as the requests a...
by jameswise
Tue Aug 16, 2022 1:04 pm
Forum: General Discussion and Questions
Topic: Interrupt handler for UART
Replies: 7
Views: 3817

Re: Interrupt handler for UART

I am working on a ESP01 to (original Pico) solution that uses the UARTs on each as a communication bridge, the ESP handles the WiFi/MQTT traffic and the Pico does the heavy lifting. Given the testing I have done, seems best to let the first processor on Pico handle UART traffic. Using uasynio I pus...
by jameswise
Tue Aug 16, 2022 1:44 am
Forum: General Discussion and Questions
Topic: 2D Arrays/Matrix in micropython
Replies: 5
Views: 19690

Re: 2D Arrays/Matrix in micropython

From what I can tell, there isn't a direct equivalent to the NumPy library for MicroPython. However, there are some workarounds that you can use to get similar functionality. One workaround is to use the built-in array and bytearray types. You can use these types to create two-dimensional arrays and...
by jameswise
Tue Aug 16, 2022 1:36 am
Forum: Programs, Libraries and Tools
Topic: How about a CPython library that interacts with REPL?
Replies: 3
Views: 5035

Re: How about a CPython library that interacts with REPL?

I think that's a great idea! There are already a few CPython libraries that interact with MicroPython REPLs, but it would be great to have one that is more widely used and supported.