cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

Anonymous
Not applicable

Can someone explain what are these settings for in BLE_PROFILE_CFG?

    /*.powersave_timeout              =*/ 0,    // second  0-> no timeout

    /*.button_power_timeout          =*/ 0,    // seconds

    /*.button_client_timeout          =*/ 0,    // seconds

    /*.button_discover_timeout        =*/ 0,    // seconds

    /*.button_filter_timeout          =*/ 0,    // seconds

I found the some description in the void bleprofile_ReadButton(void) in bleprofile.h:

This function can handle powersave, discover, client, filter timeout related functions that are defined in button_power_timeout, button_client_timeout, button_discover_timeout, button_filter_timeout of BLE_PROFILE_CFG config item. When button is pressed for timeout (sec) of powersave, discover, client, filter function, such function (powersaving, undirected ADV for pairing, client function (find me, time, etc), toggle HCI mode) will be initiated. 

From the description, it seems to me the setting triggers the event (powersave, descover, client, filter) when button is pressed for X seconds defined in the setting?

What is an example that would apply these setting?  Also, if I set all to the same timeout value, what would happen then?

0 Likes
Reply
1 Solution
Employee

Those variables are for internal use only.  They were used for ROM test and are not supported when used by the application.

View solution in original post

0 Likes
Reply
3 Replies
Moderator
Moderator

I'll check to see if one of the developers can respond and explain how these 4 values are used within an application.

0 Likes
Reply
Anonymous
Not applicable

mwf_mmfae, I updated the original post.  Mainly I want to know if there are explanation and examples on how to use these variables declared in the BLE_PROFILE_CFG

0 Likes
Reply
Employee

Those variables are for internal use only.  They were used for ROM test and are not supported when used by the application.

View solution in original post

0 Likes
Reply