Created
May 15, 2020 05:52
-
-
Save corycorvus/1f558e874e5900d35b80fa1ff9bbd8c8 to your computer and use it in GitHub Desktop.
Get the serial number of a VIVE tracker with C++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char serialNumber[1024]; | |
vr::VRSystem()->GetStringTrackedDeviceProperty(deviceID, vr::Prop_SerialNumber_String, serialNumber, sizeof(serialNumber)); | |
printf("Serial Number = %s \n", serialNumber); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment