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.75k stars 844 forks source link

[BUG] Modbus connector doesn't support multiple slaves corresponding to the same Thingsboard device #952

Closed ferguscan closed 2 years ago

ferguscan commented 2 years ago

Describe the bug I want to have multiple Modbus slave entries for the same Thingsboard device (i.e. same device name). This would, for example, allow me to poll different sets of Modbus registers at different rates.

When I try to do this, TB receives data from only one of the slaves.

Connector name (If bug in the some connector): Modbus

Error traceback (If available): None. It fails silently.

Versions (please complete the following information): TB Gateway official Docker image 3.0.1

samson0v commented 2 years ago

@ferguscan, it is impossible to have the same ThingsBoard devices with default converter because device separation by unitId