Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- azure-iot-provisioning-device-http:Http {"operationId":"4.dd5e9d546d057f12.8a2a1010-281f-4ac1-a29f-591800934ecc","status":"failed","registrationState":{"registrationId":"jeffsdeskjune","createdDateTimeUtc":"2019-06-17T14:25:14.7183582Z","status":"failed","errorCode":400209,"errorMessage":"Custom allocation failed with
- status code: 401","lastUpdatedDateTimeUtc":"2019-06-17T14:25:14.8832611Z","etag":"IjZkMDBmY2MwLTAwMDAtMDEwMC0wMDAwLTVkMDdhMmNhMDAwMCI="}}
- var transport = new Transport();
- var securityClient = new X509Security(registrationId, deviceCert);
- deviceClient = ProvisioningDeviceClient.create(provisioningHost, idScope, transport, securityClient);
- // Register the device. Do not force a re-registration.
- deviceClient.register(function (err, result) {
- if (err) {
- console.log("error registering device: " + err);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement