Code Monkey home page Code Monkey logo

Comments (8)

ezequiel-umu avatar ezequiel-umu commented on June 12, 2024

May I ask which is this very similar mechanism?

from iotagent-json.

dmoranj avatar dmoranj commented on June 12, 2024

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.

from iotagent-json.

drasko avatar drasko commented on June 12, 2024

@dmoranj do you have in mind that device subscribes to the topic /{{apikey}}/{{deviceid}}/commands and listen here for the command coming from Orion, and then respond to this command via /{{apikey}}/{{deviceid}}/replies?

from iotagent-json.

dmoranj avatar dmoranj commented on June 12, 2024

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.

from iotagent-json.

amfgomez avatar amfgomez commented on June 12, 2024

Hello,
I have a sensor-actuator registered in orion using iot-agent and I created the subscription.

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.
In orion that attribute is true or false.
If the attribute is modified in orion must be sent to IOT-agent and IOT-agent to the device to close or open the valve
Is it possible?

from iotagent-json.

fgalan avatar fgalan commented on June 12, 2024

@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!

from iotagent-json.

amfgomez avatar amfgomez commented on June 12, 2024

https://stackoverflow.com/questions/52499615/modify-attribute-on-device-by-iot-agent-json

from iotagent-json.

fgalan avatar fgalan commented on June 12, 2024

https://github.com/telefonicaid/iotagent-json/blob/master/docs/usermanual.md includes this note:

IMPORTANT NOTE: current version of the agent only supports active attributes, i.e. those attributes actively reported by the device to the agent. Passive or lazy attributes, i.e. those attributes whose value is only given upon explicit request from the agent, are not implemented. Please check the issue #89 for more details and updates regarding its implementation.

That note should be removed once this issue gets completed.

from iotagent-json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.