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

Does the SoftDevice S110 support 'Direct Advertising'?

I'd like to use 'Direct Advertising' to get the attention of a Central (a specific one or any in range) when an event happens on the peripheral. Is this mode supported by the device / S110? If so, is there information anywhere on how to use it properly?

Parents
  • It is possible to use Directed Advertising with the S110

    you would have to do it like this

    
    ble_gap_adv_params_t adv_params;
    adv_params.type = BLE_GAP_ADV_TYPE_ADV_DIRECT_IND;
    adv_params.p_peer_addr = &m_peer_addr; // from earlier connection
    adv_params.fp = BLE_GAP_ADV_FP_ANY;
    adv_params.p_whitelist = NULL;
    adv_params.interval = 0;
    adv_params.timeout = 0;
    
    errcode = sd_ble_gap_adv_start(&adv_params);
    
    
Reply
  • It is possible to use Directed Advertising with the S110

    you would have to do it like this

    
    ble_gap_adv_params_t adv_params;
    adv_params.type = BLE_GAP_ADV_TYPE_ADV_DIRECT_IND;
    adv_params.p_peer_addr = &m_peer_addr; // from earlier connection
    adv_params.fp = BLE_GAP_ADV_FP_ANY;
    adv_params.p_whitelist = NULL;
    adv_params.interval = 0;
    adv_params.timeout = 0;
    
    errcode = sd_ble_gap_adv_start(&adv_params);
    
    
Children
Related