Skip to content

tascript/kwrb

Repository files navigation

kwrb

kwrb is MQTT client for mruby.

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :github => 'tascript/kwrb', :branch => 'main'
end

environment

mruby 2.1.2(recommendation)

MQTT version

3.1.1

usage

usage of kwrb is simple.

connect

s = Kwrb::Client.connect(host: 'host')

disconnect

s = Kwrb::Client.connect(host: 'host')
s.disconnect

publish

s = Kwrb::Client.connect(host: 'host')
s.publish(topic: 'a/b', message: 'hello')

subscribe

s = Kwrb::Client.connect(host: 'host')
s.subscribe(topic: 'a/b')

license

under the License:

  • see LICENSE file

About

MQTT client for mruby 🍩

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE_mruby-socket

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published