Skip to content

Instantly share code, notes, and snippets.

@corycorvus
Created May 15, 2020 05:52
Show Gist options
  • Save corycorvus/1f558e874e5900d35b80fa1ff9bbd8c8 to your computer and use it in GitHub Desktop.
Save corycorvus/1f558e874e5900d35b80fa1ff9bbd8c8 to your computer and use it in GitHub Desktop.
Get the serial number of a VIVE tracker with C++
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