package serial

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val port : string

Location of opened serial port

val baud_rate : int

Connection Baud rate

module Private : sig ... end

Submodule for values that should not be used externally

val read_line : unit -> string Lwt.t
val write_line : string -> unit Lwt.t
val write : string -> unit Lwt.t
val wait_for_line : string -> timeout_s:float option -> Serial__.Wait_for.t Lwt.t

Wait for the specified string to be received.

val io_loop : string option -> unit Lwt.t

Open two-way communication between std(i/o) and the Serial device.

Supply Some "$KEYWORD" to exit the loop upon entering the specified line in stdin. Supplying None causes this function to loop indefinitely.

OCaml

Innovation. Community. Security.