Class docs and device name/uid

Class docs and device name/uid

emspemsp Member Posts: 2
Hi all

Can you please point me in the direction of the class docs for Unity? Something like this for the iOS SDK:

https://developer.bose.com/docs/ios-wearable-sdk/3.0.14/Protocols/WearableDevice.html#/s:12BoseWearable0B6DeviceP17deviceInformation7BLECore0cE0VSgvp

I'm trying to get a uid or device name/nickname from a set of Frames to assign to a player id in a multiplayer setup with known hardware.

Thanks




Comments

  • emspemsp Member Posts: 2
    To answer my own question, you can do this. I'd still like to know where the class docs are though please :)

    using System;
    using UnityEngine;
    using Bose.Wearable;
    using UnityEngine.SceneManagement;

    public class LoadOnConnect : MonoBehaviour
    {
    private void Update()
    {
    if (WearableControl.Instance.IsDeviceConnected)
    {

    var device = WearableControl.Instance.ConnectedDevice.Value;

    // _deviceDescriptionText.text =
    // Enum.GetName(typeof(VariantType), device.GetVariantType()).Nicify().ToUpper();

    // _deviceUidText.text = device.firmwareVersion;

    Debug.LogFormat("Device Connected! name={0}, uid={1}",
    device.name,
    device.uid);

    SceneManager.LoadScene("Timeline");

    Destroy(gameObject);
    }
    }
    }

Sign In or Register to comment.