Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.33 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.33 KB

#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