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 in IoT (Internet of Things) by Upasana
• 8,430 points
12 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 by Shubham
• 13,190 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,260 points
374 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,100 points
33 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 in IoT (Internet of Things) by Shubham
• 13,190 points
43 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,260 points
36 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,260 points
51 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,190 points
55 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,190 points
25 views