flutter-ble-uart
flutter-ble-uart copied to clipboard
Not detecting disconnect with `_updateConnectionState`
On iOS, initiating a disconnect on the Arduino device does generate an iOS didDisconnectPeripheral
event, but the flutter-ble-uart serial.onStateChange.listen(_updateConnectionState)
listener doesn't see it. Thus _updateConnectionState
isn't called and the Flutter app thinks it's still connected.