nordic 52832修改蓝牙地址

nrf52832修改蓝牙地址,代码如下。末位地址+1


        ble_gap_addr_t addr;
        err_code = sd_ble_gap_address_get(&addr);
        APP_ERROR_CHECK(err_code);
        // Increase the BLE address by one when advertising openly.
        addr.addr[0] += 1;
        err_code = sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &addr);
        APP_ERROR_CHECK(err_code);

你可能感兴趣的:(nordic 52832修改蓝牙地址)