Advertisement Channels


#1

Hello all,
Is there anyway to make the ble nano 2 just advertise in one channel (just advertise in the 37)? I am using the arduino ide, and I can t find any method or variable to set to make this.
Thanks


#2

I don’t know about the Arduino library, but in the Nordic SDK I saw a SoftDevice API that allows you to set the advertising channels. The API is called sd_ble_gap_adv_start():

http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v5.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&anchor=ga241191b3fa20a5c20a60a088240a1dfa

There is a channel mask inside the p_adv_params argument to this function.

I have not yet tried the Nordic SDK on the BLE Nanov2 board, but I have compiled one of the examples. My impression is that if you want to do something special, you need to move away from the Arduino library.