p_power_mgmt_notification = &p_event_data->power_mgmt_notification;
WICED_BT_TRACE("Power mgmt status event: bd (%B) status:%d hci_status:%d\n", p_power_mgmt_notification->bd_addr, \
// I add some code as as below. Every few seconds it enter status:2 again.
// How to disable enter status:2
1 of 1 people found this helpful
Status : 2 indicates that the device is entering to sniff mode,giving status WICED_POWER_STATE_SNIFF with status code 2.
Can you try putting following code and see if it works:
if (p_power_mgmt_notification->status == WICED_POWER_STATE_SNIFF)
result = wiced_bt_dev_cancel_sniff_mode( p_power_mgmt_notification->bd_addr );
WICED_BT_TRACE("sniff mode cancel = %d", result);
The API returns WICED_BT_PENDING after successful cancellation of sniff mode.
Regarding the final question Roso asks, "how to keep in WICED_POWER_STATE_ACTIVE"...
Roso, did you resolve the issue?
or Sheetal, is there a recommendation. If appropriate, please re-direct to a new thread/post where the question of how to keep in WICED_POWER_STATE_ACTIVE is answered.
There is some reference inforation in the @ API Reference: WICED Studio 6.2.1 (CYW20719) though the question isn't specifically answered.