Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 MQTT 通过其时间插件 RPC 从 thingsboard.io 请求时间。 会不会准确。
def getTime(): requestId = '1' request = { "method": "getTime", "params": {} } client.publish('v1/devices/me/rpc/request/' + requestId, json.dumps(request))
并在连接回调时订阅 rpc。