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 845 forks source link

[BUG] Gateway pushing data to cloud too often #506

Closed santiago-ruiz closed 3 years ago

santiago-ruiz commented 3 years ago

Describe the bug I'm currently using ThingsBoard Cloud with a ThingsBoard Gateway and looking at the API usage I found that the "Transport hourly activity" was higher than expected. After searching for a bit, looking at the MQTT traffic in the gateway with tcpdump I found that is pushing datapoints (eventsProduced, eventsSent, modbusconnectorEventsProduced, and modbusconnectorEventsSent) every 5 seconds. This frequency cannot be changed in configuration and represents more than 2M Data Points in transport monthly. This limits the API usage a user can get from ThingsBoard Cloud and its unnecessary information. I think this should be configurable in some way....

Versions :

imbeacon commented 3 years ago

Hi @santiago-ruiz ,

Thank you for your interest in ThingsBoard IoT gateway. I have added the functionality like you described, to use it please try to use the version from the master branch. Also it will be available in the next release.

santiago-ruiz commented 3 years ago

Hi @zbeacon, thanks for the quick answer. This new feature is working perfectly!