package mosquitto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type msg = {
  1. mid : int;
  2. topic : string;
  3. payload : string;
  4. qos : int;
  5. retain : bool;
}
module Version : sig ... end
val create : string -> bool -> (t, [> `EUnix of Unix.error ]) Result.result
val connect : t -> string -> int -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
val reconnect : t -> (unit, [> `EUnix of Unix.error ]) Result.result
val publish : t -> string -> string -> int -> bool -> (unit, [> `EUnix of Unix.error ]) Result.result
val subscribe : t -> string -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
val callback_set : t -> (msg -> unit) -> unit
val loop : t -> int -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
val loop_forever : t -> int -> int -> (unit, [> `EUnix of Unix.error ]) Result.result
OCaml

Innovation. Community. Security.