Skip to content

zadata/mqtt-client-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt-client-ruby

Example of connecting to ZADATA via MQTT using Ruby

git clone git@github.com:zadata/mqtt-client-ruby.git
cd mqtt-client-ruby/

bundle install

If you have problems with bundle install then you can just run

gem install mqtt

as it's the only gem used.

To find your MQTT Username and Password login into your ZADATA account on http://ZADATA.com and click navbar -> Settings -> Credentials

NOTE: you have two MQTT passwords (one for subscribers only, the other with subscriber and publisher priveleges - use the one for publishers).

MQTT_URL=mqtt://USER:PWD@mqtt.zadata.com:1883 ruby mqtt_client.rb

or

MQTT_URL=mqtt://USER:PWD@mqtt.zadata.com:1883 ruby mqtt_client_threaded.rb

About

Example of connecting to ZADATA via MQTT using Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages