elixir-circuits / circuits_uart

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

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

Closed CharlesOkwuagwu closed 1 year ago

CharlesOkwuagwu commented 1 year 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 1 year 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 1 year 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!