public override void AdvertisingStarted(CBPeripheralManager peripheral, NSError error) { if (error == null) { AdvertiseStartSuccess?.Invoke(this, new AdvertiseStartEventArgs(AdvertiseStatus.None)); } else { AdvertiseStartFailed?.Invoke(this, new AdvertiseStartEventArgs(AdvertiseStatus.InternalError)); } }
private void BluetoothGatt_AdvertiseStartFailed(object sender, AdvertiseStartEventArgs advertiseStartEventArgs) { AdvertiseStartFailed?.Invoke(this, advertiseStartEventArgs); }