iotagent-json | IoT Agent for a JSON based protocol
kandi X-RAY | iotagent-json Summary
kandi X-RAY | iotagent-json Summary
IoT Agent for a JSON based protocol (with HTTP, MQTT and AMQP transports)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of iotagent-json
iotagent-json Key Features
iotagent-json Examples and Code Snippets
Community Discussions
Trending Discussions on iotagent-json
QUESTION
We have a FIWARE based architecture that uses the IoT Agent for a JSON based protocol.
We have a sensor that sends measures, whose format is already NGSI.
I thought the behavior of the agent was to recognize the NGSI format and manipulate the data so that the final result is correct.
Instead, the current result is that the value on Orion becomes the full NGSI.
e.g.
Attribute on Orion Entity:
...ANSWER
Answered 2020-Jan-13 at 18:20The purpose of the IOTA (well, one of them :) is to translate measures send by the device to NGSI information at Context Broker. Thus, at device-IOTA level the device sends:
QUESTION
I'm running the Fiware IoT Agent example locally. The plan is to hook this up to some sort of Device and make a demo. I'm using request bin to inspect the requests sent from the IoT Agent.
After starting the environment with ./services start
I'm calling this shell script to register a bell device in the agent and then trigger the "ring" command.
ANSWER
Answered 2019-Apr-03 at 08:16The problem is that the IoT Agent assumes that the device will respond with JSON. Requestbin's default answer is the string "ok". This caused a crash in the agent.
The request is successful if the device returns {}
, and it's even more successful if it returns some info on the result of the command. E.g.
QUESTION
I am working on FIWARE IoTAgent-JSON. I want to perform device discovery by the same. My expectation from device discovery is that whenever a new device gets registered in IoTAgent-JSON, I receive a notification with device data. Is it possible? If yes, how can this be done?
...ANSWER
Answered 2019-Feb-22 at 08:49Whenever a device is registred at IOTA, an entity is created at CB. So, if you create a subscription in CB for that (for instance, a subscription covering all entities of type device) then you can achieve what you want.
You can learn more on CB subscription in it's corresponding section of the walkthrough documentation.
QUESTION
I am using IOT-agent JSON with MQTT binding
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.
extra information:
The software is two component of Fiware Generic Enable.
iot-agent JSON: https://github.com/telefonicaid/iotagent-json Fiware-orionCB: https://github.com/telefonicaid/fiware-orion
Is it possible?
...ANSWER
Answered 2018-Oct-04 at 09:36There is no official tutorial connecting the JSON IoT Agent to a device over MQTT, but a very similar one exists for the Ultralight IoT Agent
IoT Devices are either:
- sensors - reading measurements from the real world
- actuators - altering the state of the world
- or both
Your issue here is that you cannot get Orion to update the attribute/state of a sensor directly. The attributes of the entity in the Context Broker represent the incoming state of the sensor - i.e. the measurements from that sensor.
For example for the sensor reading the state of a valve it could be "open: "true"
In order to update an actuator, you will need to send a command, rather than alter the value.
You should set up the command when provisioning the device (it is assumed you have a service already):
QUESTION
I've deployed a FIWARE configuration to receive MQTT messages from TheThingsNetwork. The configuration uses IoTAgent-JSON, Orion and Cygnus, with a MongoDB backend for Cygnus.
The messages are correctly persisted to MongoDB. Unfortunately, the message data having a hierarchical structure, some parts of the message appear as strings in MongoDB, instead of embedded subdocuments.
This makes it difficult to query the data.
Here are the details:
The message format is defined by the TTN MQTT Data API.
I've defined an entity type on Orion as follows:
...ANSWER
Answered 2018-May-11 at 11:41The created entity looks well structured, I notice that you create the entity using the v2 but you subscribe to receive the notifications using v1, I know that is a correct way to do that but maybe the wrong behavior is generated by that reason.
QUESTION
On my server I have Orion context broker and an IoT agent working in docker containers. I can register and update my entity using MQTT protocol no problem. But I would like to be able to send command to my device using the command system in the IoT Agent. In the Documentation, it says that when a command is registered, the IoT agent publish something in /apiKey/EntityID/cmd. However, when I do so, I don't have anything published. The entity is updated properly (I can see the status of the command going to PENDING, and positive LOG telling me that everything is OK. But nothing is published on my MQTT topic.
Here is my docker-compose.yml file:
...ANSWER
Answered 2018-Jan-17 at 13:48The problem comes from how I create my device on my IoT Agent. I have to specify the transport field, which is MQTT. So to make it work, I have to create a device like this :
QUESTION
During this tutorial: https://github.com/telefonicaid/iotagent-json/blob/master/docs/stepbystep.md
When I execute the curl:
...ANSWER
Answered 2017-Mar-28 at 12:05It seems you are "mixing" URL styles from NGSIv1 and NGSIv2 :) I mean, it should be either:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install iotagent-json
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page