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

SDK12 removal of BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE from ble_gap_addr_set

Why was this removed? The SD 3.0 docs show only random static and public as options and I get bad address for the others which is consistent with the docs. We were using random private resolvable in SDK11 and seeing the MAC addr rotate as expected. Does public do the same thing? I noticed that the name of the function changed as well from sd_ble_gap_address_set to sd_ble_gap_addr_set.

Parents
  • Please check out the S132 v3 migration document:

    /* S132 v2.0 API usage */

    ble_gap_addr_t private_addr = {0};
    private_addr.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE;
    sd_ble_gap_addr_set(BLE_GAP_ADDR_CYCLE_MODE_AUTO, private_addr);
    

    /* S132 v3.0 API usage */

    ble_gap_privacy_params_t privacy_params = {0};
    privacy_params.privacy_mode = BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY;
    privacy_params.private_addr_type =
    BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE;
    sd_ble_gap_privacy_set(privacy_params);
    
Reply
  • Please check out the S132 v3 migration document:

    /* S132 v2.0 API usage */

    ble_gap_addr_t private_addr = {0};
    private_addr.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE;
    sd_ble_gap_addr_set(BLE_GAP_ADDR_CYCLE_MODE_AUTO, private_addr);
    

    /* S132 v3.0 API usage */

    ble_gap_privacy_params_t privacy_params = {0};
    privacy_params.privacy_mode = BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY;
    privacy_params.private_addr_type =
    BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE;
    sd_ble_gap_privacy_set(privacy_params);
    
Children
Related