Hi,
Just like the issue that title has shown.
How to set structs and functions?
BR,
Yoole
Hi,
Just like the issue that title has shown.
How to set structs and functions?
BR,
Yoole
Hi Yoole
Please check out the SDK and the BLE peripheral examples we have already, containing multiple examples of how you can use the nRFs radio to advertise BLE advertisements to nearby scanning devices. For starters, I would suggest taking a look at the ble_app_beacon example for an example that just advertises data, and the ble_app_uart example, that advertises and connects to a scanning device requesting a connection (I.E. a phone).
Best regards,
Simon
Hi Simon
Sadly, I cannot find the methods to change channels except 3 advertising channels.
At ble_app_beacon example, I set the struct of ble_gap_adv_params_t like below.
m_adv_params.channel_mask[0] = 0xff; m_adv_params.channel_mask[1] = 0xff; m_adv_params.channel_mask[2] = 0xff; m_adv_params.channel_mask[3] = 0xff; m_adv_params.channel_mask[4] = 0xef;
However, it may be something wrong, there's no advertising packet on the air at ch36.
BR,
Yoole
Hi Yoole
Please check out the Bluetooth Low Energy Advertisements blog post here, where BLE advertising is explained in detail. the ble_app_beacon only advertises its initial advertisement on the Primary advertising channels (37, 38, and 39). The other channels are known as Secondary advertisement channels and are used as "auxiliary" channels, meaning that a device has to first advertise on the primary advertising channels before sending out advertising packets on these secondary channels.
Best regards,
Simon