-
Notifications
You must be signed in to change notification settings - Fork 88
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
add functional test case about how use special word value
as a name of attribute
#1668
base: master
Are you sure you want to change the base?
add functional test case about how use special word value
as a name of attribute
#1668
Conversation
value
as a name of attribute
CC @tzzed @GuillaumeOd what do you think? |
Thanks for the test, @AlvaroVega. It’s working fine on my end as well. However, in some cases, we’re sending For example: {
"a": false,
"value": 10
} As expected, this change causes the test to fail. It doesn’t seem to be related to the "value" string itself, as I tested with other random words, and it still doesn’t work. From what I understand, this change appears to remove the capability to update a device attribute by name. What are your thoughts? |
Then maybe you can define your attribute with a conditional expression: |
I suppose the core question from my previous comment is this: should we only be updating an attribute using its |
measures should use |
The doc is still showing examples of measures sent by attribute names. https://iotagent-node-lib.readthedocs.io/en/latest/api.html You can find examples at "Multimeasure support" and "Measurement transformation" sections. Please consider the test added to my PR and reproduce it in local without my fix in order to demonstrate this. |
Regarding with
|
@AlvaroVega I am not sure to understand what you say.
the iotagent cannot send
What about real life? you mean only the |
Of course you can send as a measure an attribute name which will be part of entity, but then do not include it in device attribute mapping, like ac3f194, or simply put the same name in object_id and name attribute, or even more do not define object_id, just name attribute 10167df |
IMHO this test case demostrates which #1660 is working