CloseGatt() public method

public CloseGatt ( ) : void
return void
コード例 #1
0
        private void CloseGattInstances(BluetoothGatt gatt)
        {
            //ToDO just for me
            Trace.Message($"References of parnet device gatt and callback gatt equal? {ReferenceEquals(_device._gatt, gatt).ToString().ToUpper()}");

            if (!ReferenceEquals(gatt, _device._gatt))
            {
                gatt.Close();
            }

            //cleanup everything else
            _device.CloseGatt();
        }