Dynamically change connection interval on WICED Sense

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I have an application for which the power consumption is very important. I would like to send less frequent data if the sensors are not moving, and send more frequent data if the sensors are moving with the user.

I see that the connection intervals are set in the wiced_sense_connection_up() function through calling bleprofile_SendConnParamUpdateReq(). Is it allowed to call the same function to adjust the connection interval later on after the connection is up? If not, how would you achieve the dynamic nature of this feature?

I appreciate your help in advance,

Bardia

0 Likes
1 Solution

The app can call bleprofile_SendConnParamUpdateReq() to request any connection interval it desires, but the master may or may not accept this request (and so change or not). In general, most masters (Windows, Android, iOS) will accept the new connection interval as long as it does not affect other connections (like say an audio stream).

View solution in original post

0 Likes
2 Replies