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

ANCS whitelist

I used the ANCS program in sdk12.3.0, I have closed the white list function, I use the iphone connection and paired, then I ignore this device on the phone, and then I use the phone to connect ANCS device, then suggested that can not connect , What is the problem, can tell me what needs to be modified?

Parents
  • // Build and set advertising data memset(&advdata, 0, sizeof(advdata));

    advdata.name_type                = BLE_ADVDATA_FULL_NAME;
    advdata.include_appearance       = true;
    advdata.flags                    = *BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;*
    advdata.uuids_complete.uuid_cnt  = 0;
    advdata.uuids_complete.p_uuids   = NULL;
    advdata.uuids_solicited.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    advdata.uuids_solicited.p_uuids  = m_adv_uuids;
    
    memset(&options, 0, sizeof(options));
    options.ble_adv_whitelist_enabled = false;
    options.ble_adv_fast_enabled      = true;
    options.ble_adv_fast_interval     = APP_ADV_FAST_INTERVAL;
    options.ble_adv_fast_timeout      = APP_ADV_FAST_TIMEOUT;
    options.ble_adv_slow_enabled      = true;
    options.ble_adv_slow_interval     = APP_ADV_SLOW_INTERVAL;
    options.ble_adv_slow_timeout      = APP_ADV_SLOW_TIMEOUT;
    
    ret = ble_advertising_init(&advdata, NULL, &options, on_adv_evt, NULL);
    
Reply
  • // Build and set advertising data memset(&advdata, 0, sizeof(advdata));

    advdata.name_type                = BLE_ADVDATA_FULL_NAME;
    advdata.include_appearance       = true;
    advdata.flags                    = *BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;*
    advdata.uuids_complete.uuid_cnt  = 0;
    advdata.uuids_complete.p_uuids   = NULL;
    advdata.uuids_solicited.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    advdata.uuids_solicited.p_uuids  = m_adv_uuids;
    
    memset(&options, 0, sizeof(options));
    options.ble_adv_whitelist_enabled = false;
    options.ble_adv_fast_enabled      = true;
    options.ble_adv_fast_interval     = APP_ADV_FAST_INTERVAL;
    options.ble_adv_fast_timeout      = APP_ADV_FAST_TIMEOUT;
    options.ble_adv_slow_enabled      = true;
    options.ble_adv_slow_interval     = APP_ADV_SLOW_INTERVAL;
    options.ble_adv_slow_timeout      = APP_ADV_SLOW_TIMEOUT;
    
    ret = ble_advertising_init(&advdata, NULL, &options, on_adv_evt, NULL);
    
Children
No Data
Related