Code Example - Update connection parameter base on Wiced Studio

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

cross mob
PICH_4397076
Level 3
Level 3
25 replies posted 10 replies posted 10 questions asked

Dear All,,,

I am going to develop our application with Cypress's Dual Mode BT Chipset CYW20706.

Our application runs as a peripheral (Server / Slave),

and after connection we need to update the connection parameters.

I looked for a related example after wiced studio installation, but couldn't find it.
Please let me know if there are any code examples I can refer to.

Thanks,

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi,

For updating Connection parameters, you just need to use the below API in your application after connection_up : wiced_bt_l2cap_update_ble_conn_params  ( Check wiced_bt_l2c.h file )

Example:

    uint16_t min_int = 400; /* Minimum connection interval - 400 x 1.25 = 500 ms */

    uint16_t max_int = 400; /* Maximum connection interval - 400 x 1.25 = 500 ms */

    uint16_t latency = 0;   /* Slave latency */

    uint16_t timeout = 500; /* Supervision timeout - 500 x 10 = 5000 ms */

result = wiced_bt_l2cap_update_ble_conn_params (hello_sensor_state.remote_addr,  min_int,  max_int,  latency,  timeout);

Thanks,

Anjana

View solution in original post

0 Likes
3 Replies