Jump to content

finding UID in C-code


bjorn
 Share

Recommended Posts

Is there a way to read the UID of a device without knowing the UID of the device?

I can only get an answer when calling the function _get_identity AFTER i already connected to the brick using _create. 

And in "create" i need the UID

Link to comment
Share on other sites

  • 2 weeks later...
Am 11.10.2022 um 10:20 schrieb rtrbt:

For that you can use the IP connection's enumerate callback. See here for an example:

https://www.tinkerforge.com/en/doc/Software/IPConnection_C.html#enumerate

This will report all connected Bricks and Bricklets with their UID and more.

Thank you!
I will try this later.

I gotta say that tinkerforge documents isnt very helpful about this.  For the most part, they just say that "the easiest way is to use brickviewer" :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...