Replies: 4 comments
-
Hi @kennyyork have you tried using the drain method after the write? |
Beta Was this translation helpful? Give feedback.
-
I just tried adding a drain after the initial write and get the same result.
I'm pretty confident my wiring is correct, but if it were not (say I had my TX/RX wires swapped), would I be seeing an error like this? It seems odd for the underlying fs.write() to not error but also not write any data |
Beta Was this translation helpful? Give feedback.
-
It might only do that if it were blocked on the write like the control flow pins was not what the driver wanted or something. |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to our new discussion system until we confirm some sort of bug. |
Beta Was this translation helpful? Give feedback.
-
Summary of Problem
I'm trying to read/write data over the serial port to a standing desk controller.
When I call write, the completion callback never fires. If I enable debug logs, I see the following printed out in a tight loop:
I would expect at least an error to be called instead of an infinite loop
Code to Reproduce the Issue
In the code below, "Sent" is never printed.
Versions, Operating System and Hardware
Beta Was this translation helpful? Give feedback.
All reactions