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(); }