In the forum, I found that I should use channel_mask in the
advertising_init
function
But there is no that structure to use it.
How can I make it in the SDK17?
In the forum, I found that I should use channel_mask in the
advertising_init
function
But there is no that structure to use it.
How can I make it in the SDK17?
I added next code
static void advertising_start(void)
{
m_advertising.adv_params.channel_mask[4] = 0xA0; // Dont advertise on ch 39 and 37
uint32_t err_code = ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
}
And seems work. But really will I advertise on the one channel?
Hello,
Yes, '0xA0' will mask channel 37 and 39 here. You can also use a BT sniffer to confirm this.