I am going to use the BLE beacon function for simple home networking.
The device should be able to switch between beacon transmission mode and beacon reception mode (beacon scanner) by itself.
The device is always in the beacon reception mode, and when it receives a specific beacon signal, it switches to the transmission mode by itself, then transmits a specific beacon signal and changes to the reception mode by itself.
I refer to ble_app_beacon for the beacon function.
However, it is difficult to implement the beacon scanner function. I searched DEVZONE for the beacon scanner function, and several people asked about the beacon scanner, but I couldn't find an appropriate answer.
The goal is to implement a function that the device can change to the transmit mode and transmit by itself after receiving the beacon signal in the receive mode, and then change to the receive mode by itself.
Please provide the source code for reference.
Or, tell me how to modify it using a specific example source code in the SDK.
thank you.