rainliu/mqtt

语言: Go

git: https://github.com/rainliu/mqtt

Go中的MQTT
MQTT in Go
README.md (中文)

MQTT

Go中的MQTT MQTT一致性/互操作性测试 https://eclipse.org/paho/clients/testing/ python3 client_test.py [hostname:port]: 回溯(最近的呼叫最后):   在offline_message_queueing_test中输入“client_test.py”,第231行     断言len(callback.messages)在[2,3],callback.messages中 断言错误:[] 脱机消息排队测试失败 重新连接测试开始时的重新传递 回溯(最近的呼叫最后):   在redelivery_on_reconnect_test中输入“client_test.py”,第309行     断言len(callback2.messages)== 2,“长度应为2:%s”%callback2.messages 断言错误:长度应为2:[] 重新连接测试的重新传递失败 测试套件失败了 hostname localhost port 1883 清理开始 清理完毕 基本测试开始 基础测试成功 保留消息测试开始 保留消息测试成功 消息测试是否成功 重叠订阅测试开始 此服务器为所有匹配的重叠订阅发布一条消息,而不是每条消息都有一条消息。 重叠订阅测试成功 Keepalive测试开始 Keepalive测试成功 零长度clientid测试开始 零长度clientid测试成功 订阅失败测试开始 订阅失败测试成功 $ topics测试开始 $ topics test成功 测试套件成功了

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

mqtt



MQTT in Go





MQTT Conformance/Interoperability Testing



https://eclipse.org/paho/clients/testing/



python3 client_test.py [hostname:port]:



Traceback (most recent call last):

File "client_test.py", line 231, in offline_message_queueing_test

assert len(callback.messages) in [2, 3], callback.messages

AssertionError: []

Offline message queueing test failed



Redelivery on reconnect test starting

Traceback (most recent call last):

File "client_test.py", line 309, in redelivery_on_reconnect_test

assert len(callback2.messages) == 2, "length should be 2: %s" % callback2.messages

AssertionError: length should be 2: []

Redelivery on reconnect test failed

test suite failed





hostname localhost port 1883

clean up starting

clean up finished

Basic test starting

Basic test succeeded

Retained message test starting

Retained message test succeeded

Will message test succeeded

Overlapping subscriptions test starting

This server is publishing one message for all matching overlapping subscriptions, not one for each.

Overlapping subscriptions test succeeded

Keepalive test starting

Keepalive test succeeded

Zero length clientid test starting

Zero length clientid test succeeded

Subscribe failure test starting

Subscribe failure test succeeded

$ topics test starting

$ topics test succeeded

test suite succeeded