Skip to content

[Question] good practices of handling BLE Connection. #414

Answered by peitschie
qpre asked this question in Q&A
Discussion options

You must be logged in to vote

The question is definitely much better answered for a specific case, because in general "it depends" 🙂

Connection duration has less effect on battery life than you might think, as it really depends on what the connection intervals are.

In general, connecting consumes a fair amount of power (as scanning is required) compared to a long running idle connection.

Given no other background context, my recommendations would be:

  1. automatic connect on launch
  2. keep the connection open while the app is open
  3. measure the battery impact of your app

This is by far the least error prone and most reliable way to get data with mobile phones 🙂

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jastax
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pwespi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #404 on October 09, 2022 09:57.