没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Ruby 实现协议(一种用于发布/订阅消息传递的轻量级协议)的纯Ruby gem。 还包括用于解析和生成数据包的类。 目录 安装 您可能会从获得最新的稳定版本: $ gem install mqtt 或者,要使用使用来自GitHub的开发快照: gem 'mqtt', :git => 'https://github.com/njh/ruby-mqtt.git' 快速开始 require 'rubygems' require 'mqtt' # Publish example MQTT :: Client . connect ( 'test.mosquitto.org' ) do | c | c . publish ( 'test' , 'message' ) end # Subscribe example MQTT :: Client . connect ( 'test.mosquitto.org' ) do | c | # If you pass a block to the get method, then it will loop c . get ( 'test'
资源推荐
资源详情
资源评论
收起资源包目录
ruby-mqtt-master.zip (38个子文件)
ruby-mqtt-master
.gitignore 75B
NEWS.md 5KB
mqtt.gemspec 2KB
LICENSE.md 1KB
.travis.yml 119B
.rubocop.yml 484B
examples
mqttsn_publish_minus_one.rb 428B
simple_get.rb 403B
readonly_proxy.rb 458B
environment_uri.rb 560B
get_packets.rb 390B
authentication.rb 839B
simple_publish.rb 282B
client_cert.rb 727B
spec
fake_server.rb 4KB
mqtt_client_spec.rb 35KB
mqtt_packet_spec.rb 63KB
mqtt_sn_packet_spec.rb 52KB
spec_helper.rb 311B
zz_client_integration_spec.rb 5KB
mqtt_proxy_spec.rb 103B
mqtt_version_spec.rb 446B
fixtures
root-ca.pem 786B
client.pem 672B
client.pass.key 986B
root-ca.key 963B
client.key 887B
README.md 6KB
lib
mqtt.rb 1KB
mqtt
patches
string_encoding.rb 485B
proxy.rb 4KB
packet.rb 30KB
version.rb 75B
sn
packet.rb 17KB
client.rb 17KB
Gemfile 89B
.yardopts 72B
Rakefile 836B
共 38 条
- 1
资源评论
长迦
- 粉丝: 34
- 资源: 4659
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功