-
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
Selectively ignore some measures #416
Comments
Twin issue in IOTA-UL: telefonicaid/iotagent-ul#372 |
Hi @fgalan, |
No, as far as I know. Thanks! |
Hi @fgalan , As per my understanding, the feature development is about when one or more attributes set as ignored then these attributes should not be updated at Context Broker. Following are the possible cases by which we can implement above feature:
OR
Case 2: Set attributes to be ignored while sending measure to the IOTA. The sample payload for sending measure is:
As per my understanding, Case 1-Approach 1 will be the good approach to solve this. |
The current behavior is that any measure sent by the device progresses toward Orion, no matter if it is part of "attributes" field or not ("attributes" field is only used to apply a mapping, a transformation expression, etc.). I'd suggest to implement this using a flag. For instance, "explicitAttrs": true|false. If true, only the attributes declared in "attributes" will be progressed, the rest will be ignored. This explicitAttrs flag could be defined at three levels:
Does it make sense? Please, don't hesitate to ask if you have doubts about this proposal. |
Note that the provisioning API is part of the functionality provided by iotatent-node-lib so maybe this functionality needs modification to that library (and not to the agents code) to be implemented. |
Hi @fgalan
As per my understanding, the current behavior is different for 'v1'. Below are the two cases for sending measure if it is not part of "attributes". Case 2: When So, as per above explanation, the feature will be implemented for v2 only. |
Hi @fgalan , |
NGSIv1 is a deprecated API so I'd suggest to focus in the NGSIv2 case. As far as I understand by your test, in NGSIv2 the behaviour
happens, so my proposal of soultion
would be applicable. Does it makes sense to you? Do you agree in implementing that solution? Please tell me what you think. Thanks! |
By the way, I think this issue has relation with this other: telefonicaid/iotagent-node-lib#654. In particular, this issue seems to correspond to "case 2" of telefonicaid/iotagent-node-lib#654. |
@fgalan Thanks :) |
Done! |
Fixed by PR #458 (and telefonicaid/iotagent-node-lib#873) |
Support selective ignore of measures so the IOTA doesn't progress for instance the measure on
m
when it receives{"n": 044.7, "m": 30}
.The text was updated successfully, but these errors were encountered: