- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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