Popularity
6.6
Declining
Activity
0.0
Stable
13
3
7
Monthly Downloads: 25
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
Library
c-mosquitto alternatives and similar packages
Based on the "Library" category.
Alternatively, view c-mosquitto alternatives based on common mentions on social networks and blogs.
-
antlr-haskell
A language parsing quasiquoter for Haskell based heavily on ANTLR4. -
byteunits
Human friendly conversion between byte units (KB, MB, GB...) -
par-dual
:repeat: ParDual class for a Parallel <-> Sequential relationship -
cfenv
A Haskell port of https://github.com/cloudfoundry-community/go-cfenv -
bglib
Haskell implementation of serial communication with BLED112 dongle
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Promo
www.influxdata.com
Do you think we are missing an alternative of c-mosquitto or a related project?
README
c-mosquitto
main :: IO ()
main = runCommand $ \MainOptions{..} args -> M.withMosquittoLibrary $ do
print M.version
m <- M.newMosquitto True "server" (Just ())
M.setTls m caCert userCert userKey
M.setTlsInsecure m True
-- callbacks
M.onMessage m print
M.onLog m $ const putStrLn
M.onConnect m print
M.onDisconnect m print
M.onSubscribe m $ curry print
M.connect m server port keepAlive
M.subscribe m 0 "rcv/#"
forkIO $ forever $ do
M.publish m False 0 "hello" "bla"
threadDelay 5000000
M.loopForever m
M.destroyMosquitto m
print "The end"
Hacking
Documentation for used C library can be found at https://mosquitto.org/api/files/mosquitto-h.html.