This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is it possible to BLE scanning in one channel instead of 3 channel?

Dear nordic,

BLE advertising happens in 3 channel(37,38,39) and scanner scans these channel based on scan interval consecutively

I want to scan single channel instead of scanning 3 channels consecutively . Is it possible to scan one channel?

can you help me to solve this?

Parents Reply
  • Yes, something's clearly wrong. You make instance of m_adv_params in your advertising_init() function where you set the channel_mask, but you never actually use this variable anywhere. It cannot have any effect whatsoever, so just remove it.

    As you use the advertising module, you need to look at the first parameter of your call to ble_advertising_start(), the which is an instance of ble_advertising_t. This is called m_advertising in most examples. You should instead set something like this in your code before you call ble_advertising_init():

    m_advertising.adv_params.channel_mask[4] = 0x80;

Children
Related