You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The send_data function sends the data to the thingsboard server.
With paho-mqtt I send the data with:
ret = g_rcc_mqtt.publish('v1/devices/me/telemetry', data, 1)
g_logger.info(ret)
With tb_device_mqtt I send the data with:
result = g_rcc_mqtt.send_telemetry(data)
success = result.get() == TBPublishInfo.TB_ERR_SUCCESS
g_logger.info(success)
With tb_device_mqtt I get after some seconds the exception: Message publish failed: The client is not currently connected.
Is there an example that shows how to use tb_device_mqtt library inside asyncio code.
The text was updated successfully, but these errors were encountered:
I try to use the tb_device_mqtt library together with the asyncronous opc-ua library asyncua and asyncio.Queue().
With the standard paho-mqtt library the sending of the data works fine. With tb_device_mqtt library it is not working.
The relevant part of the code looks like this:
p_plc is the asyncua client
q_queue is an async.Queue
The send_data function sends the data to the thingsboard server.
With paho-mqtt I send the data with:
With tb_device_mqtt I send the data with:
With tb_device_mqtt I get after some seconds the exception: Message publish failed: The client is not currently connected.
Is there an example that shows how to use tb_device_mqtt library inside asyncio code.
The text was updated successfully, but these errors were encountered: