tokio-serial icon indicating copy to clipboard operation
tokio-serial copied to clipboard

"Invalid data bits setting encountered" while opening the native async

Open DerAndereJohannes opened this issue 11 months ago • 2 comments

Dear all, I am having trouble running the project's example using the correct settings on my Windows 10 host to an ESP32-C6 device. I have a device connected to COM3, baud: 115200, data bits: 8, no flow control and 1 stop bit. When I try to run the example, it returns the error as follows: Error: Error { kind: Unknown, description: "Invalid data bits setting encountered" } from the open_native_async. When I open the port using open_native, it opens fine without error.

If I can give any extra information, please let me know. Thank you very much in advance.

DerAndereJohannes avatar Mar 11 '24 14:03 DerAndereJohannes

Just tried it on my Linux machine and the async example worked perfectly. It seems to be a windows specific issue.

DerAndereJohannes avatar Mar 11 '24 17:03 DerAndereJohannes