I am currently using two nRF52840s to create a transmitter, one that acquires data and transmits it as advertisement data, and a receiver that receives data from the advertisement data.
The transmitter's configuration parameters are set via an NUS connection.
After starting up, the receiver starts BLE configuration and advertisement scanning, and when it finds a transmitter device, it connects to the NUS and sends parameters, and after disconnecting the NUS, it acquires data from the advertisement data.
Currently, it works as expected from startup to disconnecting the NUS, but when the NUS connection is disconnected, the ble_evt_handler, which I want to acquire advertisements from, is not executed even if I reconfigure the BLE stack and scan.
What do you think is the cause?