Closed AhmadMagdi closed 2 years ago
Hi,
It looks like you have a repeated attibute objectId (in bold):-
"attributes": [ { "key": "temperature", "type": "string", "objectId": "analogOutput:1", "propertyId": "units" }, { "key": "t2", "type": "string", "objectId": "analogOutput:0", "propertyId": "presentValue" }, { "key": "t3", "type": "string", "objectId": "analogOutput:1", "propertyId": "units" } ],
Try changing the third one to something different?
Hi @AhmadMagdi, please, update your Gateway to the newest version (3.1) via the master branch or other convenient for you methods and let us know if the bug is gone.
Thanks for your interest in ThingsBoard IoT Gateway!
Describe the issue I have The Thingsboard IoT Gateway up on a virtual machine, and I'm trying to get the BACnet connector to work. I have, on the same local network, another virtual machine running a BACnet device using BACnet Stack, which can be used to simulate a Bacnet device. I defined a device in the Bacnet connector configuration file, and gave it a few properties to read which are sent to an Mqtt Broker by the gateway. The problem is, it seems not to be consistent in reading those properties; most of the time it can read the first one and send it to the broker, sometimes it sends the first two, and only a few times does it send the three of them.
{"Device1 Abanoub": {"temperature": 98}}
{"Device1 Abanoub": {"temperature": 98, "t2": 0.0}}
{"Device1 Abanoub": {"temperature": 98, "t2": 0.0, "t3": 98}}
Also, how do I control when the gateway scans for devices, or do I have to restart it each time?
Configuration (Attach your configuration file)
tb_gateway.yaml:
tb_gateway.yaml.txt
bacnet.json:
bacnet.json.txt
Connector name (If you need help with some connector/converter): BACnet Connector
Error traceback (If it was raised): Those errors sometimes appear in the logs, but I'm not sure if or how they're related to the issue.
Here are some of the logs, where the errors appear, for context
sampled_logs.txt
Versions (please complete the following information):