Advertising and Scanning
Hi Dialog,
my custom application should advertise and initiate a connection simultaneously, but only Advertising works.
Code snippet:
ble_gap_role_set(GAP_PERIPHERAL_ROLE | GAP_CENTRAL_ROLE);
...
ble_gap_adv_start(GAP_CONN_MODE_UNDIRECTED);
ble_gap_connect(&bd_addr, &cp);
What could be the problem?
Thanks
Armin