elixir-circuits / circuits_uart

Discover and use UARTs and serial ports in Elixir
Apache License 2.0
188 stars 48 forks source link

HOWTO: connect to 2 or more Serial Ports at the same time #158

Closed CharlesOkwuagwu closed 12 months ago

CharlesOkwuagwu commented 12 months ago

Please can we connect to 2 ore more Serial Ports at the same time?

Please can you give a small example if this is indeed possible.

Thanks!

fhunleth commented 12 months ago

Yes. Call Circuits.UART.start_link for each serial port that you want to use. Each serial port is a separate GenServer.

CharlesOkwuagwu commented 12 months ago

Yes. Call Circuits.UART.start_link for each serial port that you want to use. Each serial port is a separate GenServer.

Works Perfectly! Thanks!