Wired meter-bus through the serial port or TCP/IP.
All functions are specified by clojure.spec and might throw in case of IO failure.
When a timeout in milliseconds is given, IO operations will only block for that amount of time when waiting an answer / confirmation from a slave.
Wired meter-bus through the serial port or TCP/IP. All functions are specified by clojure.spec and might throw in case of IO failure. When a timeout in milliseconds is given, IO operations will only block for that amount of time when waiting an answer / confirmation from a slave.
(close connection)
Closes the given connection.
Closes the given connection.
(req-ud2 connection)
(req-ud2 connection primary-address)
Requests user data from the slave and waits for a variable data structure.
Returns nil if a timeout was set and is up.
Requests user data from the slave and waits for a variable data structure. Returns nil if a timeout was set and is up.
(reset-application connection)
(reset-application connection primary-address)
Sends an application reset to the requested slave.
Returns false if a timeout was set and is up, true if everything went well.
Sends an application reset to the requested slave. Returns false if a timeout was set and is up, true if everything went well.
(send-ud connection ba)
(send-ud connection ba primary-address)
Sends user data to a slave.
Returns false if a timeout was set and is up, true if everything went well.
Sends user data to a slave. Returns false if a timeout was set and is up, true if everything went well.
(serial-connection path)
(serial-connection path serial-options)
Establishes a Meter-Bus connection on the given serial port.
Establishes a Meter-Bus connection on the given serial port.
(snd-nke connection)
(snd-nke connection primary-address)
Sends a SND_NKE message to reset the FCB (frame counter bit).
Returns false if a timeout was set and is up, true if everything went well.
Sends a SND_NKE message to reset the FCB (frame counter bit). Returns false if a timeout was set and is up, true if everything went well.
(tcp-connection host port)
(tcp-connection host port tcp-options)
Establishes a Meter-Bus connection via TCP/IP.
<!> Experimental.
Establishes a Meter-Bus connection via TCP/IP. <!> Experimental.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close