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

[HELP] Device type of devices always default MQTT connector even when device type is specified #349

Closed jazkiddie closed 4 years ago

jazkiddie commented 4 years ago

Hello,

Title says it all, I'm using a mqtt connector and thingsboard gateway, I have checked that my syntax is correct and it is even properly fetched in the corresponding json mqtt uplink converter file as shown in the following screenshots Capture and this is what I get when I type systemctl status thingsboard-gateway.service on my shell Capture If this can't be easily fixed, I put the device type as a client attribute and I would like to know if there is a way to put that as the device type.

Edit:

This is what I have in my thingsboard Capture

imbeacon commented 4 years ago

Hi @jazkiddie,

Thank for your interest in the ThingsBoard IoT gateway and feedback. This issue caused by first connection of the device. we will fix it.

imbeacon commented 4 years ago

Hi @jazkiddie,

could you check that the first message from your device contains the device type and you are configure correctly your gateway (deviceTypeJsonExpression or deviceTypeTopicExpression). The gateway cannot change the device type after device was created.