cancel
Showing results for 
Search instead for 
Did you mean: 

GAP Observer Role

JVan.1529
Associate

I am building a device that has to register data that is send in BLE beacons. I want to filter this data out of received Advertisement messages.

Are there any implementations of this capability that I can learn from? 

I started from the P2P Client example, but when I change the gap role from GAP_CENTRAL_ROLE to GAP_OBSERVER_ROLE, I do not get any advertisement reports anymore.

1 ACCEPTED SOLUTION

Accepted Solutions
JVan.1529
Associate

OK, I solved the problem. I turns out that I had to use the aci_gap_start_observation_proc instead of aci_gap_start_general_discovery_proc.

View solution in original post

2 REPLIES 2
JVan.1529
Associate

OK, I solved the problem. I turns out that I had to use the aci_gap_start_observation_proc instead of aci_gap_start_general_discovery_proc.

Remi QUINTIN
ST Employee

​We don’t have an example with OBSERVER_ROLE.

Now if a device has a GAP_OBSERVER_ROLE, he must send the aci_gap_start_observation_proc command (instead of the aci_gap_start_general_discovery_proc command).

If the remote device has a GAP_BROADCASTER_ROLE, he must send the aci_gap_set_broadcast_mode. command.

 So when you change the role to be GAP_OBSERVER_ROLE, the aci_gap_start_general_discovery_proc command was not sent as we did not implement this role.

But you managed you find all this be yourself ... good!!