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にサブスクライブします。