NRF9160 DK sending "MAC address" while advertising

Hii 

I have  a problem pass the address  while advertising

I should pass the adress using 9160_dk

However, in main.c there is this line:

#define DEVICE_NAME "Nordic_UART" /*

but i should pass mac address like

#define DEVICE_NAME NRF_FICR->DEVICEADDR1

but they can  not  take  the NRF_FICR->DEVICEADDR1 so what should do 

  • How advertising the mac address
  • How should   NRF_FICR->DEVICEADDR1 will used   from  CONFIG_BT_DEVICE_NAME..
  • They should not take NRF_FICR in 
  • #define NRF_FICR->DEVICEADDR1
    • I will used 
    • char strDeviceNAME[20];
    • int demo = NRF_FICR->DEVICEADDR1;
           sprintf(strDeviceName,"%x",demo); 
      #define DEVICE_NAME strDeviceName so that is not taken  the device name  
      how should do that 
                 

Related