Skip to content

Commit 74b59c2

Browse files
committed
fix: remove restored state from dart
1 parent f9b1abd commit 74b59c2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/reactive_ble_mobile/ios/Classes/Plugin/PluginController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ final class PluginController {
7373
message = DeviceInfo.with {
7474
$0.id = peripheral.identifier.uuidString
7575
// Restored device state is different from peripheral state from connection manager
76-
$0.connectionState = 4
76+
$0.connectionState = encode(.connected)
7777
}
7878

7979
case .failedToConnect(let underlyingError), .disconnected(let underlyingError):

packages/reactive_ble_platform_interface/lib/src/model/connection_state_update.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ enum DeviceConnectionState {
3535
disconnecting,
3636

3737
/// Device is disconnected.
38-
disconnected,
39-
40-
/// Device is restored (iOS only - when using state restoration)
41-
restored
38+
disconnected
4239
}
4340

4441
/// Type of connection error.

0 commit comments

Comments
 (0)