Skip to content

Switch from flutter_blue to flutter_reactive_ble#35

Merged
MouradLachhab merged 13 commits intomasterfrom
packetloss
Oct 12, 2020
Merged

Switch from flutter_blue to flutter_reactive_ble#35
MouradLachhab merged 13 commits intomasterfrom
packetloss

Conversation

@MouradLachhab
Copy link
Copy Markdown
Contributor

Switch was made to flutter reactive ble framework allowing to set the BLE priority which drops the packet loss considerably. However, this framework does not provide methods to disconnect a connected device. Error handling was also changed, I'm not sure if this is the best way to do it.

Copy link
Copy Markdown
Contributor

@abelfodil abelfodil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls fix conflicts

Comment thread mobile/lib/src/application/device/device_selector_cubit.dart Outdated
Comment thread mobile/lib/src/domain/eeg_data/eeg_data.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart Outdated
Comment thread mobile/lib/src/domain/acquisition_device/i_acquisition_device_repository.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart
Comment thread mobile/lib/src/infrastructure/eeg_data_repository.dart Outdated
Comment thread mobile/pubspec.yaml Outdated
Copy link
Copy Markdown
Contributor

@abelfodil abelfodil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code seems to disconnect the device, so we should preserve the stream value and use it to disconnect by cancelling the stream elsewhere.

Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart Outdated
@MouradLachhab MouradLachhab merged commit 987a0b7 into master Oct 12, 2020
@MouradLachhab MouradLachhab deleted the packetloss branch October 12, 2020 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants