ESP32 UART Interrupt #9976
-
hi community 👋 Problem: Info: I have a basic understanding about the interrupt handlers, uasyncio, concept of event handler, concept of event listener and also the observer pattern. The WWW was not helpful because there are descriptions of Code snippit: uart = UART(2, 921600)
uart.init(baudrate=921600, bits=8, parity=None, stop=1)
uartIrq = uart.irq(trigger=UART.RX_ANY, handler=handle_interrupt) Error Message:
Question:
Thanks for any thought and shared information ℹ️ UPDATEIt looks like the Interrupt is existing, but is already used, see here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can use uasyncio stream |
Beta Was this translation helpful? Give feedback.
You can use uasyncio stream
coro task to wait for any data on RX - do some... , other times you can run any other tasks.
but:
#8867