Skip to content

[BUG] Report Strategy "On change or report period" #1990

@jkitn

Description

@jkitn

Connector name (If bug in the some connector):
BACnet, but I think its related to all connectors which are polling data.

Describe the bug
If report period is reached, an old value from cache (last poll) is used. We expect, gateway to poll value again when report period is reached to report most actual value.

UseCase:
Value which is updated from Thingsboard will be also read and reported to Thingsboard.
Report Strategy is "On change or report period" to reduce traffic.

But in some cases (right after a poll happend and before the next report period, no new poll before report period reached) the old value is reported and right after with the next polling the changed value (see screenshot).

This causes malfunctios in our rulechains.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Setup BACnet gateway connector to update and poll a binary value.
  2. Poll period 30s, Report period e.g. 5 min.
  3. update shared attribute on thingsboard e.g. 20s before expected report period
  4. Gateway will report old value and right afterward new value

Versions (please complete the following information):

  • OS: Docker
  • Thingsboard IoT Gateway version 3.7.7 and 3.7.8
Image

report_strategy_config.json

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions