Hi Matthias,
I am looking forward to BR/EDR (Classic) and the intention is to let the application know that page scan has started after issuing gap_discoverable_control(1) command.
In the same way I want to let the application know about the disconnection after the gap_discoverable_control(0) command is issued.
From the BTStack Manual, Under profiles I see below code snippet
int main(void){
...
// make discoverable
gap_discoverable_control(1);
btstack_run_loop_execute();
return 0;
}
void packet_handler (uint8_t packet_type, uint8_t *packet, uint16_t size){
...
switch(state){
case W4_CHANNEL_COMPLETE:
// if connection is successful, make device undiscoverable
gap_discoverable_control(0);
...
}
}
However I am not able to trace W4_CHANNEL_COMPLETE in the source code.
Thanks
Justin