@jimbobbennett asked me to open this issue on Discord: https://discord.com/channels/702724176489873509/703326290551373974/780613633058144257
More Details here:
https://stackoverflow.com/questions/64826684/how-to-automatically-associate-a-device-with-a-device-template
Summary... its not clearly documented when using the Python IoT Device SDK how to pass the template associated to the device.
provisioning_device_client.provisioning_payload = {"modelId": "your_device_template_URN"} The URN is the Interface @id which is found when you View Identity on the Template itself.
There is also some use of the words "id" in the code and "urn" in the UI which is confusing as well.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@askpatrickw Thanks for the feedback! We are currently investigating and will update you shortly.
@askpatrickw I think @dominicbetts replied on Stackoverflow. Please comment here if you need further help with this issue.
It is great to see that new content created. I love that you're always creating more value !
Some feedback
provisioning_payload isn't mentioned in the SDK Wiki https://github.com/Azure/azure-iot-sdk-python/wiki/key-word-arguments-during-client-creationsswitch you know what you are using is better. Totally a nitpick. I could totally be talked out of that I'm sure. ;-)
If you choose to close this or not is up to you, I'm just trying to point out where dots aren't being connected for people new to the platform. Cheers!
Hi @askpatrickw - I've added some more information about the model ID to both the code tutorials and the device connectivity concepts article - there's also some additional links to more detailed information. The updates should be live later today.
I'll pass on your comments about the Python code sample to authors of the sample.
Thanks for the feedback - always welcome!
Most helpful comment
Hi @askpatrickw - I've added some more information about the model ID to both the code tutorials and the device connectivity concepts article - there's also some additional links to more detailed information. The updates should be live later today.
I'll pass on your comments about the Python code sample to authors of the sample.
Thanks for the feedback - always welcome!