示例#1
0
        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);
        }
示例#2
0
 private void OnReadRemoteRSSI(object sender, BLEGATTRSSIStatusEventArgs e)
 {
     if (e.Status != GattStatus.Success)
     {
         RaiseReadRSSIFailed(e.Status.ToShared());
     }
     else
     {
         RaiseRSSIRead(e.RSSI);
     }
 }