-
Notifications
You must be signed in to change notification settings - Fork 55
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
IoT Agent integration issue with Scorpio Broker #538
Comments
Which version of agent are you using?. It seems that the problem was addressed in iotagent-node-lib 2.19.0 which is used by iotagent-ul 1.20.0. Probably @jason-fox can help you better. |
Hi, Thanks. |
This was a bug identified in the 1.19.0 release as @mapedraza stated. To fix it, just update to 1.20.0 or higher. |
Hi @jason-fox We tried it using version IoTagent-ul 1.20.1 So, here "on" and "off" attributes are not coming so how would we partially update these attributes from Scorpio Broker? "on": { Thanks, |
@RupamNEC - curl -L -X PATCH 'http://localhost:4041/ngsi-ld/v1/entities/urn:ngsi-ld:Device:water001/attrs/on' \
-H 'fiware-service: openiot' \
-H 'fiware-servicepath: /' \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "Property",
"value": " "
}' |
Note that there are ongoing discussions within ETSI attempting to clarify two different usages of NGSI-LD registrations - Orion-LD and Stellio follow the actuator mechanism, Scorpio follows a federation pattern, so it is likely that the IoT Agent registration will need to amended to align to the updated ETSI spec once details have been decided. There is no conflict between brokers using subscriptions, so you may want to provision your device using bidirectional attributes instead. |
Hi @martin-p-bauer |
Hi @jason-fox So there is version conflict while integrating Scorpio Broker with IoT Agent. @martin-p-bauer @ScorpioBroker Thanks |
@RupamNEC I just discussed the issue with @jason-fox. This is indeed a breaking change between NGSI-LDv1.2.1 and NGSI-LDv1.3.1. The idea here is to move all FIWARE Brokers to the NGSI-LDv1.3.1 @context soon, which would enable solving this particular issue. However, we identified that this problem is only the "tip of the iceberg" and that HTTP OPTIONS may help us to solve (a larger part of) the general problem. |
@RupamNEC So, indeed we are currently working on distributed operation / forwarding in ETSI and we have identified different cases. So far, Scorpio primarily supports the federation case, i.e. it forwards queries and subscriptions to registered Contest Sources that may have information fitting the request. For IoT agents, there are two approaches for supporting actuation, the subscriptions-based one that we anyway support and the update forwarding one that we now want to support in addition. We have initially made simplified assumptions for implementing the latter, i.e. for forwarding updates we require that entity id AND attribute are part of the registration. The current work in ETSI will slightly change this, as the functionality offered will be explicitly specified in the registration. |
Hi,
As we are doing integration of IoT Agent with Scorpio Broker.
For Northbound the data coming from IoT Agent is:
{
"id": "urn:ngsi-ld:Device:water001",
"type": "Device",
"heartRate": {
"type": "Property",
"value": {
"@type": "Intangible",
"@value": null
},
"unitCode": "5K"
},
"status": {
"type": "Property",
"value": {
"@type": "Intangible",
"@value": null
}
},
"location": {
"type": "GeoProperty",
"value": {
"type": "Point",
"coordinates": [0, 0]
}
},
"controlledAsset": {
"type": "Relationship",
"object": "urn:ngsi-ld:Building:barn001"
},
"category": {
"type": "Property",
"value": "sensor"
},
"supportedProtocol": {
"type": "Property",
"value": "ul20"
},
"on_status": {
"type": "Property",
"value": {
"@type": "commandStatus",
"@value": "UNKNOWN"
}
},
"on_info": {
"type": "Property",
"value": {
"@type": "commandResult",
"@value": " "
}
},
"off_status": {
"type": "Property",
"value": {
"@type": "commandStatus",
"@value": "UNKNOWN"
}
},
"off_info": {
"type": "Property",
"value": {
"@type": "commandResult",
"@value": " "
}
},
"on": {
"type": "command",
"value": ""
},
"off": {
"type": "command",
"value": ""
}
}
But NGSI-LD does not supports the type: "command" , as the issue regarding this has already been raised
FIWARE/context.Orion-LD#919
Is there any update on this or when it is plan to fix this issue?
Thanks,
Amit.
The text was updated successfully, but these errors were encountered: