@hackage net-mqtt-rpc0.2.0.1
Make RPC calls via an MQTT broker.
Categories
License
BSD-3-Clause
Maintainer
dustin@spy.net
Links
Versions
Installation
Dependencies (8)
- base >=4.7 && <5
- bytestring
- exceptions
- net-mqtt >=0.8.2.0
- random
- stm Show all…
Dependents (0)
mqtt-rpc
This package provides an RPC client interface over MQTT.
It's currently quite low-level and not very configurable, but I'm using it in a real application, so it at least needs to work for me. :)
Example:
mc <- connectURI mqttConfig{_protocol=Protocol50} "mqtt://broker/"
response <- call mc "some/path" "a message"
BL.hPut stdout response