Skip to main content
HPham.3
Associate II
Jul 27, 2021 7:17 AM UTC
Question

Connect to beacon with STM32WB

Hello guys,

I am using STM32WB and also get stuck when I try to enable hci_le_advertising_report_event()

I use examble BLE_MeshLightingRFL and in function Ble_Hci_Gap_Gatt_Init(), I command function aci_gap_create_connection() at the end

It return BLE_STATUS_SUCCESS but the function hci_le_advertising_report_event() don't run. Is there anyway I can fix it.

Thank you.

This topic has been closed for replies.

1 reply

Remi QUINTIN
ST Technical Moderator
Aug 17, 2021 3:20 PM UTC

I assume a beacon is only advertising in non-connectable mode. So, this is why you cannot connect to it.

A beacon usually uses non-connectable scannable undirected advertisements to broadcast data to be discovered by multiple other BLE devices but without accepting connections.

Now it is not clear whether it is the reason to get stuck within the hci_le_advertising_report_event() function call.