1 Reply Latest reply on Aug 7, 2020 12:38 PM by ns_4270701

    How to set device's unique address


      @Moderatore to n s)


      You can get the local device addres with API void wiced_bt_dev_read_local_addr (wiced_bt_device_address_t bd_addr);


      To configure the addr, you can use the API void wiced_bt_set_local_bdaddr( wiced_bt_device_address_t  bda , wiced_bt_ble_address_type_t addr_type);



      Every time wiced_bt_dev_read_local_addr API, returns the same local address in different ble device.


      From a production point of view, where we use hex files, what we care about is to obtain a unique identification number for each ble device. For that particular device, it will never change.

        • 1. Re: How to set device's unique address

          By downloading the application with BT_DEVICE_ADDRESS=FFFFFFFFFFFF in the make target.

          And then if we use wiced_bt_dev_read_local_addr API, we get the unique address in each ble device, then will set it to a unique number and store it in the flash memory.


          Check out 'Configuring the Bluetooth device address in CYW20706' in Cypress Developer Community.

          It's very useful content.