-
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
Config from Device API not used. #1624
Comments
The same issue occurs using NGSI-v2 curl -L 'http://localhost:1026/v2/entities/' \
-H 'fiware-service: openiot' \
-H 'fiware-servicepath: /' libversion:
|
IMHO no autoprovisioned devices should be provisioned with apikey, and then apikey should be provided in json:
|
I would have no problem with doing things that way as best practice (assuming it works - I haven't tried yet). Effectively you're saying use this The problem is that until 4.4.0 it was equally possible to provisions saying: use this Furthermore, there is nothing in the iotagent-node-lib documentation to describe what is required, and looking at the IoT Agents themselves (e.g. Getting Started for ultralight) provision the service with an |
I can confirm that adding |
IoT Agent Node Lib version the issue has been seen with
4.4.0
Bound or port used (API interaction)
Northbound (Provision API and NGSI Interactions)
NGSI version
NGSI-LD and NGSI-v2
Are you running a container?
Yes, I am using a contaner (Docker, Kubernetes...)
Image type
distroless
Expected behaviour you didn't see
When provisioning attributes for a device using the API, the attribute is ignored.
Unexpected behaviour you saw
When a measure is sent, the device takes static data from the group, but the device provisioning is ignored, and the measure is sent to the context broker using auto provisioned attribute names and static attributes are ignored. This also means that linked data functionality as described in the documentation no longer works.
Steps to reproduce the problem
curl -L 'http://localhost:4041/iot/about'
Using 4.4.0 library.
Provision Group with
apikey
Provision Device
temperature001
Send measure - this is using the Ultralight IoT agent
Result
Attribute called
t
present,controlledAsset
is missing. ❌Repeat with previous library:
curl -L 'http://localhost:4041/iot/about'
Using 4.3.0 library the behaviour was as expected.
Provision Group with
apikey
Provision Device
temperature001
Send measure - this is using the Ultralight IoT agent
Result
Attribute called
temperature
is present,controlledAsset
is present. ✅Configs
Log output
No response
The text was updated successfully, but these errors were encountered: