fix: 按 K-00 约定修复 Python SDK 断线重交与退避
This commit is contained in:
@@ -25,7 +25,7 @@ pip install -e ".[dev]"
|
||||
from nixmsg import Body, Client, SendOptions, Target
|
||||
|
||||
c = Client()
|
||||
c.on_session(lambda token: print("session", token))
|
||||
c.on_session(lambda token: print("session", token[:8]))
|
||||
c.on_message(lambda msg: print("msg", msg.id, msg.body.data))
|
||||
c.connect("ws://127.0.0.1:7443/mqtt", "device-1", password="secret")
|
||||
c.send(
|
||||
|
||||
Reference in New Issue
Block a user