kwrb is MQTT client for mruby.
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'tascript/kwrb', :branch => 'main'
end
mruby 2.1.2(recommendation)
3.1.1
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')
under the License:
- see LICENSE file