Device Registration in portable library

0 votes

So, I'm attempting to use Microsoft.Azure.Devices in .NET Portable library and I've discovered Microsoft.Azure.Devices.Client.PCL Nuget package for a part of the functionality but no Microsoft.Azure.Devices for the code below. 

registryManager = RegistryManager.CreateFromConnectionString(connectionString);
device = await registryManager.AddDeviceAsync(new Device(deviceID));

So, what I need is to register a new device or find one if existing, to retrieve device Key. Is there any way to do this inside the portable library?

Mar 6, 2019 in IoT (Internet of Things) by Upasana
• 8,570 points
35 views

1 answer to this question.

0 votes

No, I don't believe there is. The code for the IOT client is available here under the MIT license and you can repackage this to work for your scenario so that it can be called from a PCL.

answered Mar 6, 2019 by Shubham
• 13,370 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer
0 votes
1 answer

Publishing commands to device in IBM IoT using MQTT in Java

If you are publishing from an application, ...READ MORE

answered Jul 27, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
502 views
0 votes
1 answer

RPMs for IoT Agents of Backend Device Management GE in FIWARE IoT ecosystem

The RPMs for IDAS component are availaible. ...READ MORE

answered Jul 29, 2018 in IoT (Internet of Things) by DataKing99
• 8,130 points
69 views
+1 vote
1 answer

RegEx to remove XML tags and their content

I presume you want to drop the ...READ MORE

answered Feb 13, 2019 in IoT (Internet of Things) by Shubham
• 13,370 points
527 views
0 votes
1 answer
0 votes
1 answer

Configuring a Windows 10 IoT App for Automatic Restart

Have you tried using powershell right after ...READ MORE

answered Oct 10, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
60 views
0 votes
1 answer

Access Serial Ports in Windows 10 IoT App

On Windows IoT you have to use Windows.Devices.SerialCommunication namespace ...READ MORE

answered Oct 10, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
102 views
0 votes
1 answer

How to detect presence of a device in a WiFi network?

Finding the mac-address would probably work. Basically, ...READ MORE

answered Nov 16, 2018 in IoT (Internet of Things) by Shubham
• 13,370 points
300 views
0 votes
1 answer

Detecting when a sensor is not sending data to Orion CB in FiWARE

Orion in itself has no such mechanism ...READ MORE

answered Nov 21, 2018 in IoT (Internet of Things) by Shubham
• 13,370 points
43 views