• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Yongke/luamqttc: A lua mqtt client which support MQTT version 3.1.1

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Yongke/luamqttc

开源软件地址(OpenSource Url):

https://github.com/Yongke/luamqttc

开源编程语言(OpenSource Language):

Lua 41.3%

开源软件介绍(OpenSource Introduction):

luamqttc - An lua mqtt client

Codeship Status for Yongke/luamqttc

luamqttc is base on the paho Embedded MQTT C Client Library - MQTTPacket.

It also depends on luasocket and luasec.

Supported features:

  • MQTT version v3.1.1
  • Authentication
  • QOS of 0, 1, 2
  • Last will topic
  • SSL

Note

  • To avoid 1) luasec package from luarocks repo can not load and 2) 100% cpu usage problem, you can install luasec manually from https://github.com/Yongke/luasec
  • org.eclipse.paho.mqtt.embedded-c is compiled by default in little-endian byte order, to compile it in big-endian byte order, use compile flag -DREVERSED

How to build

git clone https://github.com/Yongke/luamqttc.git
luarocks make

How to run tests

Run pato mqtt testing fake broker first

git clone https://github.com/eclipse/paho.mqtt.testing.git
cd paho.mqtt.testing/interoperability && python3 startbroker.py

and then run

lua tests/client_test.lua

After the tests, quit the fake broker(CTRL + C) and you will see the coverage report.

How to use

Check samples in tests/client_test.lua

License

It is dual licensed under the EPL and EDL (see about.html and notice.html for more details). You can choose which of these licenses you want to use the code under.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
luakit/luakit-plugins: Version control for various luakit plugins.发布时间:2022-08-16
下一篇:
jie123108/lua-resty-s3: a aws s3 client for ngx_lua发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap