-
Notifications
You must be signed in to change notification settings - Fork 89
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
send ngsiv2 measure as ngsiv2 request #773
Conversation
With this approach ngsiv2 payload as:
is progressing to CB as:
Measure needs provide a valid apikey and deviceId in order to get service and subservice. But deviceId is not really necessary. |
@fgalan in this feature, which should be a NGSIv2 measure? There are two options.
{
"actionType": "append",
"entities":[ {
"id": "entity1",
"type": "type1",
"temperature": {
"type":"Number",
"value":33
}
},{
"id": "entity2",
"type": "type2",
"temperature": {
"type":"Number",
"value":44
}
}]
}
{
[ {
"id": "entity1",
"type": "type1",
"temperature": {
"type":"Number",
"value":33
}
},
{
"id": "entity2",
"type": "type2",
"temperature": {
"type":"Number",
"value":44
}
}]
} |
Is you mean the payload for a |
Not really for |
Discussed at Teams Option 2 is the suitable one. |
TBD: do not use iotaUtils.retrieveDevice in new flow to avoid a fake device creation |
@@ -1,3 +1,4 @@ | |||
- Add: endpoit to send ngsiv2 measure to Context Broker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issue number?
I understand this PR enables a new format to receive measures in the southbound interface. That new format should be documented. Maybe @mapedraza could help with this. |
@fgalan Ok! I will push a commit with the new doc. Just a couple of questions regarding this feature:
Additionaly, it could be interesting:
|
I understand the ngsiv2 received is not checked by iotagent, just sent to ContextBroker. |
I understand the same. IOTA is mostly a pass-through here. In the case of error response from ContextBroker, it should be logged at WARN or ERROR level but no actual checking at IOTA should be done. |
Needs telefonicaid/iotagent-node-lib#1520
This PR enables a new endpoint '/iot/ngsiv2' to send a ngsiv2 format
Not sure if it should be a new endpoint or just a new query param flag to existing endpoint. Ideas?