moving acc
moving acc7mo ago

Serial port reading and writing

How would one read and write to a serial port in Deno?
2 Replies
Deno AI Helper
Deno AI Helper7mo ago
I wasn't able to find the answer to your question in the official Deno documentation. As of my last update, Deno does not have built-in support for serial port communication in its standard library. However, you might be able to achieve this by using a third-party library or by creating a plugin using Deno's Foreign Function Interface (FFI) if such a library exists. Please note that the advice provided here is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. If you decide to use FFI or a third-party library, make sure to review their documentation and ensure they are compatible with the version of Deno you are using.
jeff.hykin
jeff.hykin7mo ago
Best we got ATM are libraries that use the FFI to interactive with the native OS's serial interface. Kinda like this one but this is windows only https://github.com/DjDeveloperr/deno_serial
GitHub
GitHub - DjDeveloperr/deno_serial: Serialport API for Deno.
Serialport API for Deno. Contribute to DjDeveloperr/deno_serial development by creating an account on GitHub.

Did you find this page helpful?