Skip to content

Conversation

@mdmohsin7
Copy link
Member

@mdmohsin7 mdmohsin7 commented Oct 1, 2025

The listener uses lastValueStream in ble_transport, but the lastValueStream in flutter_blue_plus only emits values when the characteristic changes or when new notifications arrive. It does not emit the current/initial value immediately upon subscription. So we retrieve the battery level while setting up the listener

@beastoin
Copy link
Collaborator

beastoin commented Oct 9, 2025

man @mdmohsin7 change the logic at the place called performGetBleBatteryLevelListener. keep the omi connection clean and single responsibility in every function.

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.

weird glitch in connected status of device

2 participants