Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static attributes written once (at device creation) #1424

Closed
mapedraza opened this issue Sep 1, 2023 · 3 comments
Closed

Static attributes written once (at device creation) #1424

mapedraza opened this issue Sep 1, 2023 · 3 comments

Comments

@mapedraza
Copy link
Collaborator

IoT Agent Node Lib version the issue has been seen with

Master (3.3.0)

Bound or port used (API interaction)

Southbound (Devices data API), Northbound (Provision API and NGSI Interactions)

NGSI version

NGSIv2

Are you running a container?

Yes, I am using a contaner (Docker, Kubernetes...)

Image type

None

Expected behaviour you didn't see

If static attribute is updated on the entity manually, it will remain the same as the IoTA is not going to write again that value. I do not know if that was the behaviour before using append by default

Unexpected behaviour you saw

The IotA is not update on each request the static attributes before using append by default

Steps to reproduce the problem

  1. Create a device with static attributes (s=1)
  2. Send data, and check the entity (s=1)
  3. Update the static attribute (s=2)
  4. Send another data through IoTA
  5. Check the data. Static attribute does not change (s=2)

Configs

No response

Log output

No response

@mapedraza mapedraza added the bug label Sep 1, 2023
@github-actions github-actions bot added the NGSIv2 label Sep 1, 2023
@mapedraza mapedraza changed the title Static attributes behaviour Static attributes written once (at device creation) Sep 1, 2023
@AlvaroVega
Copy link
Member

I'm not remember any change about this in previous versions. Since which issue or release are you testing?

@fgalan
Copy link
Member

fgalan commented Sep 5, 2023

After internal discussion, we validate the issue described in this issue is the desired one.

@mapedraza
Copy link
Collaborator Author

After checking in deep this issue, it was because other config parameters (entity expression name). Checked from iotagent-json:1.26.0 to latest and the behaviour is the expected: to update statics everytime a measure arrives.

Thus, this issue is not valid anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants