Unique ID for XDK (MAC Address)
Answer
5/15/19 7:27 PM
Hi, is it possible to get an unique number of the XDK by writing code? I need an unique ID because I want to assign the XDK IoT device, to an object within my software. I really hope someone can help me out with this one.
0 (0 Votes)
RE: Unique ID for XDK (MAC Address)
Answer
5/16/19 12:35 AM as a reply to Murat Yilmaz.

Hi Murat,

You can check on it:

/**
 * @brief Sets the MAC address of the device.
 * @details Sets the MAC address of the device.
 *
 * @param[in]   macAddress
 * the MAC address that should be used for this device.
 *
 * @return  RETCODE_OK on success, or an error code otherwise. Refer #Retcode_General_E and #Ble_Retcode_E for other values.
 *
 * @note
 * This function must be called before BlePeripheral_Start in order to be effective and macAddress parameters are
 * purpose to BOSCH OUI ID of FC-D6-BD , So that macAddress should starts with "FC-D6-BD" OUI if not,
 * macAddress will be Randomly Generated for ex: XX-XX-XX-XX-XX-XX.
 */
Retcode_T BlePeripheral_SetMacAddress(uint64_t macAddress);

This is from the library of "BCDS_BlePeripheral.h"

0 (0 Votes)
RE: Unique ID for XDK (MAC Address)
Answer
5/16/19 2:16 PM as a reply to Visit Silmi.
Thanks for your response!
0 (0 Votes)
RE: Unique ID for XDK (MAC Address)
Answer
5/21/19 1:42 PM as a reply to Murat Yilmaz.

Hi,

 

I tried looking the header file up, but it looks like that the Mac address has to be set from within the code? Isn't it possible to get the standard Mac address of the XDK device? I really like to hear from you again.

+1 (1 Vote)