Bootstrap workflow for devices that belong to a physical device
Physical Devices created in Profiles will have the properties such as model, serial number and manufacturer. Devices created under a physical device will inherit the above properties. Such Devices can be activated in different groups in IoT.
To configure multiple devices that belong to a physical device in bootstrap
Prerequisites for Configuring Devices
Section titled “Prerequisites for Configuring Devices”- Create Groups in profiles - GroupA, GroupB
- Activate Groups(Azure Group Activation/AWS Group Activation) in IoT - GroupA, GroupB
- Create Physical Device in profiles - PhysicalDevice1
- Create Device DeviceA1 and associate with GroupA & PhysicalDevice1
- Create Device DeviceB1 and associate with GroupA & PhysicalDevice1
- Configure Public Key for DeviceA1 with GroupA & ConnectionContextA1
- Configure Public Key for DeviceB1 with GroupB & ConnectionContextB1
!!!Note
1. Associate Group with Device: Pass TRN of the group in the query param in the field in
2. Associate Device with Physical Device: Pass TRN of the physical device in the request payload
Device JWT Structure
Section titled “Device JWT Structure”Devices should create a JWT token with following parameters:
- Model
- Manufacturer
- Serial Number
- Expiry
- CSR (optional)
- ConnectionContext (Optional, but must for activating same device in different groups in IoT)
!!!Note * Devices which belong to a physical device cannot be activated under the same IoT Group. * If the physical device contains only one device under it, then the connection context can be ignored.