This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ant+ advertising parameters

Hi,

I'm using BLE and ANT+ concurrently with nrf51422 and s310 softdevice. I'm using on_ble_evt for BLE and on_ant_evt for ANT+.

I'm using following code for advertising BLE and it works fine:

memset(&adv_params, 0, sizeof(adv_params));
    adv_params.type         = BLE_GAP_ADV_TYPE_ADV_IND;
    adv_params.p_peer_addr  = NULL;
    adv_params.fp           = BLE_GAP_ADV_FP_ANY;
    adv_params.interval     = APP_ADV_INTERVAL;
    adv_params.timeout      = APP_ADV_TIMEOUT_IN_SECONDS;

    err_code = sd_ble_gap_adv_start(&adv_params);
    if (err_code == NRF_ERROR_INVALID_STATE)
    {
        //  BLE in connected or advertising
    }
    else
    {
        APP_ERROR_CHECK(err_code);
    }

And for ANT+ device keeps on advertising for indefinite period of time. So can any one please guide me where I can find similar ANT+ advertising parameters?

Related