Popularity
8.3
Growing
Activity
5.6
Growing
28
4
19

Monthly Downloads: 119
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Network     Networking     Net    
Latest version: v0.8.0.0

net-mqtt alternatives and similar packages

Based on the "net" category.
Alternatively, view net-mqtt alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of net-mqtt or a related project?

Add another 'net' Package

README

mqtt

An MQTT protocol implementation for Haskell.

Client Examples

Publish

main :: IO ()
main = do
  let (Just uri) = parseURI "mqtt://test.mosquitto.org"
  mc <- connectURI mqttConfig{} uri
  publish mc "tmp/topic" "hello!" False

Subscribe

main :: IO ()
main = do
  let (Just uri) = parseURI "mqtt://test.mosquitto.org"
  mc <- connectURI mqttConfig{_msgCB=SimpleCallback msgReceived} uri
  print =<< subscribe mc [("tmp/topic1", subOptions), ("tmp/topic2", subOptions)] []
  waitForClient mc   -- wait for the the client to disconnect

  where
    msgReceived _ t m p = print (t,m,p)