- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The connection timeout is set at power up in the create function:
1. Our definition:
#define CONN_TIMEOUT 5 // In seconds
2. In config array const BLE_PROFILE_CFG my_app_cfg:
...
/*.con_idle_timeout =*/ CONN_TIMEOUT, // In seconds
...
My question is:
Is there an API to change it later, when the code is already running? If so, what is the call that I have to use to set it to the new value?
Thanks!
Cheers,
Gil
Solved! Go to Solution.
- Labels:
-
BLE_PROFILE_CFG
-
SDK 2.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is how you do it:
Maximum is 255 seconds:
UINT8 timeout; // Set it to any value <= 255
Example:
timeout = 10;
Code:
bleprofile_StopConnIdleTimer();
bleprofile_StartConnIdleTimer(timeout, bleprofile_appTimerCb);
The "stop" call is needed if the timer has been previously started.
Cheers,
Gil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi mwf_mmfae,
Any news from him?
Thanks.
Gil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No. I am out of the office till next week, so I need to check his schedule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is how you do it:
Maximum is 255 seconds:
UINT8 timeout; // Set it to any value <= 255
Example:
timeout = 10;
Code:
bleprofile_StopConnIdleTimer();
bleprofile_StartConnIdleTimer(timeout, bleprofile_appTimerCb);
The "stop" call is needed if the timer has been previously started.
Cheers,
Gil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content