-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Why does 'Automatic Device Provisioning' not include the device defaults property #3596
Comments
It is hard to tell what the issue is that you are facing. Can you elaborate and/or provide a code snippet that illustrates the problem? |
ok, |
Are you talking about (auto-)registering a new edge device B which connects via a gateway device A that is already registered in the system? |
Yes, I'm referring to the auto-registration based on the tenant's trust anchor definition. header:
[ key 1: tenant_id, value 1: datang ]
[ key 2: types, value 2: {"obu":{}} ]
[ key 3: orig_adapter, value 3: hono-device-registry ]
[ key 4: device_id, value 4: test:obu002 ]
[ key 5: qos, value 5: 1 ]
[ key 6: hono_registration_status, value 6: NEW ]
[ key 7: content-type, value 7: application/vnd.eclipse-hono-device-provisioning-notification ]
[ key 8: orig_address, value 8: event ]
[ key 9: creation-time, value 9: 1702609334479 ]
[ key 10: traceparent, value 10: 00-13afddcfc23ff877edf3e18393621517-605de170bef2cfce-00 ] Because the 'AbstractAutoProvisioningEventSender.sendAutoProvisioningEvent' method does not take the object of the new device as a parameter, and the 'eventSender.sendEvent()' method uses 'new RegistrationAssertion(deviceId)' as second parameter, so the 'defaults' property of the registrated device is not included. |
Ok, you have defined the
Where should these default properties come from? There is no device information available yet in the registry, that's the whole point of doing auto-registration, isn't it? |
I have expanded the auto-provisioned functionality, adding some default information to the certificate for the device. I believe it is better to use the object of device registration rather than 'new RegistrationAssertion(deviceId),' as I want to obtain more information from the automatic registration notification events. |
Ok, so what is this issue all about then? |
AbstractAutoProvisioningEventSender.sendAutoProvisioningEvent.sendEvent
set new RegistrationAssertion(deviceId), Without using the Auto-Provisioning device object.
KafkaBasedEventSender.sendEvent.addDefaults, The RegistrationAssertion device.getDefaults() is null.
The text was updated successfully, but these errors were encountered: