Bluetooth check, avoid crashing
This commit is contained in:
@@ -41,6 +41,9 @@ public sealed class SimBleService : IBleService
|
||||
public IObservable<BleConnectionState> ConnectionStateChanged => _state.AsObservable();
|
||||
|
||||
// ── Scan ──────────────────────────────────────────────────────────────────
|
||||
public Task<BluetoothAvailability> CheckBluetoothAsync() =>
|
||||
Task.FromResult(new BluetoothAvailability(true, string.Empty));
|
||||
|
||||
public IObservable<BleDeviceInfo> StartScan() => Observable.Create<BleDeviceInfo>(o =>
|
||||
{
|
||||
o.OnNext(new BleDeviceInfo(0xAABBCCDDEEFF, "B_SIM-PG1", -42));
|
||||
|
||||
Reference in New Issue
Block a user