How to advertise while connected?

为了做广告而connected to a Central device, the following steps must be done:

1) In the void app_connection_func(struct gapc_connection_req_ind const *param), you have to do:

2) Create a new flag:

3) In the int gapc_disconnect_ind_handler(), you must do:

4) In the app_disconnect_func(dest_id, param); you must do:

5) In the int gapm_cmp_evt_handler, you must do: