Hello ,
I am a firmware engineer in Taiwan ,
I already use nRF52820 to finish one case ( cheaper alcohol/acetone BT checker.)
I used USB/ BT wireless uart / Uart send and receive command to control all working flow.
Now ,I have a question , some special customer only use uart ,and some special customer only use BT wireless uart .
I want to use uart command to call function to dis-connect (or turn off ) BT boardcast .
I tried below function
-------------------------
sd_ble_gap_disconnect(m_conn_handle,BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
sd_ble_gap_adv_stop(m_advertising.adv_handle);
but ,these two function can not work , I still can see BT boardcast name in cell phone.
The SDK : SDK_nRF5_SDK_17.0.2_d674dde
______________
Can someone give me the helping hand ? thanks!
Taiwan / Hsinchu County / firmware engineer / Edward 2022/08/02