Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a Question how to get any unique id or Mac address from my Raspberry pi ?
Am using Windows Universal Application Platform Vb.net (Visual Basic )

anyone can help ?

What I have tried:

VB
 Dim deviceinfo = New EasClientDeviceInformation
Debug.WriteLine(deviceinfo.id)


but this is not unique
Posted
Updated 7-Oct-16 14:28pm

1 solution

A MAC address is not a unique identifier. The specification for MAC addresses just says that the id must be unique on the segment the network adapter is connected to. It is not a globally unique id.

The best way to go about something like this is to assign a unique id to the device from your server-side code, such as a GUID or a cryptographic hash value. Basically, when your device gets on the network and talks to your server, if it doesn't have an id value, it asks the server for one. Once the id is established all further communication can be done using that id value to identify the device.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900