Skip to content

tekjar/mosquitto-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#mosquitto-rs travis

DEPRECATED: New pure rust client in development here

This crate provides rustful wrappers for (unsafe) mosquitto mqtt library. With these wrappers you can write safe, superfast, concurrent mqtt code. Since mosquitto libraries are low level and avalilable on almost all the platforms, this crate is super portable

API DOCUMENTATION

###HOW TO BUILD

#####UBUNTU

  • sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
  • sudo apt-get update
  • sudo apt-get install mosquitto
  • cargo build

#####MAC OSX

  • brew install mosquitto
  • cargo build

###SETUP TLS CONNECTIONS

  • Generate ca, server, client certificates using the guide here

  • Use the below commands to verify your connection

sudo openssl s_client -connect localhost:8884 -CAfile ./ca.crt -cert client.crt -key client.key
mosquitto_sub -t "ather/log-ship" -v --cafile ca.crt --cert client.crt --key client.key -p 8884

####EXTENDING THE MOSQUITTO BROKER FOR 100 THOUSAND CONNECTIONS

check this

About

Rust bindings for mosquitto mqtt client library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages