Serialport_lwtSourceInterface for a opened serial port.
open_communication ?switch ?exclusive ~opts port_name open the serial port using the specified opts configuration.
val with_open_communication :
?exclusive:bool ->
opts:Port_options.t ->
string ->
(t -> 'a Lwt.t) ->
'a Lwt.twith_open_communication ?exclusive ~opts port_name callback similar to open_communication but with an auto-closing mechanism.
to_channels ser_port
raise if the port name does not exist.