How to disable Enable connection to IoT Hub?
问题 I am rehistering succesfully a device in a Azure IoT hub via device provisioning service, but i want to disable the property Enable connection to IoT Hub to disable for every registered device. Is there any way to do this from the code. 回答1: You can use the REST API that allows to create or update enrollments (either group enrollments or single enrollments), in particular the provisioningStatus flag. (there is a similar API for individual enrollments). Next time your device tries to use DPS