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.76k stars 846 forks source link

[BUG]Is the storage function will when gw can't connect to tb #1507

Closed yehaha9876 closed 1 week ago

yehaha9876 commented 3 months ago

Describe the bug Recently i want modfiy gateway for case when it can't connect to tb, but it seems when mqtt disconnet there is't any data save in file. Over this time all of the event are lost.

Connector name (If bug in the some connector): I only test on modbus.

I modify modbus attr from 1 to 12 after stop tb, then start tb. only the last attr value 12 receved.

Versions (please complete the following information):

imbeacon commented 1 week ago

Hi @yehaha9876,

It very depends on storage type that you are using - if you are using memory - this behaviour is expected, other storage types gives persistent storage even when the gateway is not connected to TB. In version 3.6.1 we have fixed major issue, related to file storage, please try the latest version and let us know if something won’t work.