thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

[BUG] shared attributes cloud version - not pushed to gateway with MQTT Transport #689

Closed ysimonx closed 2 years ago

ysimonx commented 2 years ago

shared attributes cloud version - not pushed to gateway When I update attribute on a opcua server, the telemetry is updated on thingsboard Until yesterday, i managed to update a node on opcua server thanks to "shared variables"

I don't manage to update this variable anymore shared attributes updates are not pushed to gateway with MQTT any more

Error traceback:

The MQTT subscription are done

2022-01-10 18:02:09 - DEBUG - tb_gateway_mqtt - 65 - Service subscription to topic v1/gateway/attributes - successfully completed.
2022-01-10 18:02:09 - DEBUG - tb_gateway_mqtt - 65 - Service subscription to topic v1/gateway/attributes/response - successfully completed.
2022-01-10 18:02:09 - DEBUG - tb_gateway_mqtt - 65 - Service subscription to topic v1/gateway/rpc - successfully completed.'

But when i update shared variable on thingsboard.cloud no mqtt message is sent to gateway ...

def _on_message(self, client, userdata, message)

is not called anymore

is there any problem on platform ?

Versions (please complete the following information):

ysimonx commented 2 years ago

with the following code

`var mqtt = require('mqtt') var client = mqtt.connect('mqtt://thingsboard.cloud',{ username: process.env.TOKEN })

client.on('connect', function () { console.log('connected') client.subscribe('v1/devices/me/attributes') })

client.on('message', function (topic, message) { console.log('response.topic: ' + topic) console.log('response.body: ' + message.toString()) client.end() })`

when i update a shared variable for the device given by the token nothings happens after

"connected"

ysimonx commented 2 years ago

hum .... https://twitter.com/thingsboard/status/1480501145277714434 Capture d’écran 2022-01-10 à 19 26 18

ysimonx commented 2 years ago

it seems better just now ... mqtt is ok

ysimonx commented 2 years ago

problem solved after "ddos" attack,