2024-11-03 06:44 PM - edited 2024-11-03 06:48 PM
Hello,
Based on p2p_client, I want to create an observer program where the device scans the broadcaster/ beacon
I set the scan parameters first, then I enable scan
and an error occurs
i used wireless stack = stm32wb5x_BLE_Stack_full_fw.bin
----------------------------------------------------------------------------------
Error: Set scan parameters failed (Status = 0x01)
----------------------------------------------------------------------------------
Is the way I did it not right?
If the community has an example of a pure ble observer/ scanner program without connecting to another device, can you give it to me?
I have attached my program code below
Thank you for cooperation.
Regards
2024-11-20 09:52 AM
Hello @Aboyh
Unfortunately, there is not any official observer example.
For the error message that you are receiving. It is normal since to be able to use the HCI_LE_SET_SCAN_PARAMETERS command, you have to upload the stm32wb5x_BLE_Stack_full_extended_fw.bin since the stm32wb5x_BLE_Stack_full_fw.bin does not support the HCI_LE_SET_SCAN_PARAMETERS command.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.