I use it. nRF52832 PCA10040 Vesion12.2.0
I am working on the ble_app_uart example as a base.
I used the sd_ble_gap_addr_set command to change the BLE address but it was not possible.
What should I do?
I use it. nRF52832 PCA10040 Vesion12.2.0
I am working on the ble_app_uart example as a base.
I used the sd_ble_gap_addr_set command to change the BLE address but it was not possible.
What should I do?
Hi,
The error code you are seeing 12802 (0x3202) corresponds to the error BLE_ERROR_GAP_INVALID_BLE_ADDR
. The description of this error is: The upper two bits of the address do not correspond to the specified address type.
From your code, you set the address type to 7 (p_addr.addr_type = 7
), which is not a defined GAP Address type. The default address type is BLE_GAP_ADDR_TYPE_RANDOM_STATIC
(0x01). Also make sure the two LSB of the address corresponds to the specifications for the address type, as shown in this image:
Best regards,
Jørgen
Thank you :)
Thank you :)