public override void OnReadRemoteRssi(BluetoothGatt gatt, int rssi, [GeneratedEnum] GattStatus status) { base.OnReadRemoteRssi(gatt, rssi, status); var args = new BLEGATTRSSIStatusEventArgs(gatt, rssi, status); _wes.RaiseEvent(nameof(ReadRemoteRSSI), this, args); }
private void OnReadRemoteRSSI(object sender, BLEGATTRSSIStatusEventArgs e) { if (e.Status != GattStatus.Success) { RaiseReadRSSIFailed(e.Status.ToShared()); } else { RaiseRSSIRead(e.RSSI); } }