- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Implemented "wiced_bt_ble_scan" based on [ble_wifi_onboarding].
But the return value of "wiced_bt_ble_scan" is always 8100 (pending).
The content of p_scan_result in the callback registered with "wiced_bt_ble_scan" is also NULL.
What do you think is causing this?
# I am using STM32 Connectivity Expansion Pack 1.1.0.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have found that there is no problem with 8100 being returned from wiced_bt_ble_scan(), so I will close this question for now.
About the return of wiced_bt_ble_scan() I overlooked the following that was mentioned in the reference.
wiced_result_t
WICED_BT_PENDING : if successfully initiated
WICED_BT_BUSY : if already in progress
WICED_BT_ILLEGAL_VALUE : if parameter(s) are out of range
WICED_BT_NO_RESOURCES : if could not allocate resources to start the command
WICED_BT_WRONG_MODE : if the device is not up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @hi118
Can you please let us know the parameters used for wiced_bt_ble_scan ?
Also please let us know where are you calling this function in your code.
Which IFX device are you using?
Regards,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AnjanaM_61
>Can you please let us know the parameters used for wiced_bt_ble_scan ?
The arguments for wiced_bt_ble_scan() are as follows.
・BTM_BLE_SCAN_TYPE_HIGH_DUTY
・WICED_TRUE
・hello_client_scan_result_cback
>Also please let us know where are you calling this function in your code.
Referencing hello_client, set a timer with wiced_init_timer() at the end of application_init() and call it after confirming that wiced_bt_ble_scan_type_t is her BTM_BLE_SCAN_TYPE_NONE in the timer callback.
>Which IFX device are you using?
・STM32H747I-DISCO
STM32H747I-DISCO STMicroelectronics | Mouser
・LBEE0ZZ1WE-TEMP
LBEE0ZZ1WE-TEMP Murata Electronics | Mouser
・Wi-Fi/BT module: 1DX M.2 Module
1LV M.2 Module - Embedded Artists
Regards,
hi118
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have found that there is no problem with 8100 being returned from wiced_bt_ble_scan(), so I will close this question for now.
About the return of wiced_bt_ble_scan() I overlooked the following that was mentioned in the reference.
wiced_result_t
WICED_BT_PENDING : if successfully initiated
WICED_BT_BUSY : if already in progress
WICED_BT_ILLEGAL_VALUE : if parameter(s) are out of range
WICED_BT_NO_RESOURCES : if could not allocate resources to start the command
WICED_BT_WRONG_MODE : if the device is not up.