public BLEMobilePeripheral(string[] serviceUUIDs, string device_address, string device_name, float rssi) { device_address = device_address.ToUpper(); this.serviceUUIDs = serviceUUIDs; this.device_address = device_address; this.device_name = device_name; this.rssi = rssi; this.callback = new TCallbackProvider <BLEPeripheralInterface>(); this.isConnected = false; }
public UnityPeripheral(GameObject _obj) { this.obj = _obj; this.simulator = this.obj.GetComponent <CubeSimulator>(); if (this.simulator == null) { Debug.LogError("The GameObject given to UnityPeripheral does not have a CubeSimulator component!"); } this.device_address = obj.GetInstanceID().ToString(); var pos = obj.transform.position; this.rssi = pos.x + pos.y + pos.z; this.callback = new TCallbackProvider <BLEPeripheralInterface>(); }
public UnityPeripheral(GameObject _obj) { this.obj = _obj; this.callback = new TCallbackProvider <BLEPeripheralInterface>(); }