Module Observer.Smartpower
Module that represents the abstract communication with a smartpower through sockets.
val create : string -> int -> station Lwt.tcreate host porttries to reach the smartpower socket onhost:portand creates a permanent connection. In case of error it raises UNIX exceptions. It is wrapped into an Lwt monad to handle the asynchrous I/O.
val delete : station Lwt.t -> unit Lwt.tdelete stationcloses the connection with the smartpower. It's always a success.