-
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
Implement passive attributes (AKA lazy attributes) #89
Comments
May I ask which is this very similar mechanism? |
Of course :) I was talking about what's referred in the protocol as Configuration Retrieval. That's a mechanism that lets the device ask the IoT Agent for particular pieces of information, that the IoT will read, in turn from the Context Broker (both things asynchronously, of course). This mechanism currently works with on single requests from the device, but I'm working on a feature to enable subscriptions to particular pieces of information (this functionality has already been implemented in the IoT Agent Library). Processing a notification and a relayed Context Provisioning request are quite similar tasks, and probably could be dealt with using the same functions with not so many changes. |
@dmoranj do you have in mind that device subscribes to the topic |
Mostly yes. I will probably change the subscription topic, as I prefer to have one-way tokens to ease the creation of ACLs in the MQTT broker, but it will work that way: the client subscribes to a topic where the commands will arrive, and will reply to another topic. In fact, this functionality has been implemented for the MQTT transport of the Ultralight IoT Agent, as you can see here, so most probably we will reuse those topics. |
Hello, If a third party application modifies a sensor value, orion must send iot-agent information and iot-agent to the device. For example, if I have 3 attributes inside the sensor and one of them controls a valve. |
@amfgomez what you describe seems to be a question about IOTA-CB integration rather than a comment on the issue of passive attributes. I'd suggest to use StackOverflow to post such question: https://stackoverflow.com/questions/ask. Please, use the "fiware" label. Thanks! |
https://github.com/telefonicaid/iotagent-json/blob/master/docs/usermanual.md includes this note:
That note should be removed once this issue gets completed. |
This IoTA does not yet support lazy attributes but it support a very similar mechanism based on subscriptions and explicit requests from the device to retrieve information from the Context Broker. It should be easy to modify the configuration mechanism to allow lazy attributes (and consequently, commands), to be used with this IoTA.
The text was updated successfully, but these errors were encountered: