-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发送时间同步没有收到服务器返回 #598
Comments
是使用的官方协议吗? |
使用的官方协议,通过emqx接入的。 |
测试了一下,使用jetlinks自带的mqtt服务能获取时间戳,通过emqx接入就不行 |
你订阅了这个topic没 |
官方协议好像 时间同步的topic 没有加到路由里。所以不会去订阅emqx。 你修改一下官方协议试试。 https://github.com/jetlinks/jetlinks-official-protocol/blob/v3/src/main/java/org/jetlinks/protocol/official/JetLinksProtocolSupportProvider.java#L47 |
好的,我研究一下,谢谢 |
我按照文档[MQTT协议解析 | JetLinks 物联网基础平台],把时间同步的topic加到路由里,但是不起作用。应该怎么修改呢
|
|
可以了,谢谢。我看到TopicMessageCodec里面是topic都是一个星号,这里也就只写了一个星号。 |
使用mqttx客户端测试,
productId:1838407478897602560
deviceId:109C553500C0C00007B19514
上行topic:/1838407478897602560/109C553500C0C00007B19514/time-sync
订阅topic:/1838407478897602560/109C553500C0C00007B19514/time-sync/reply
发送消息内容:{"messageId":"4"},没有收到服务器返回消息,是怎么回事呢
The text was updated successfully, but these errors were encountered: