cancel
Showing results for 
Search instead for 
Did you mean: 

ibeacon local name isn't showed on stm32wb5mm-dk

Fust3
Associate

Hello i'm starting programming with stm32, i've bought the stm32wb5mm-dk and with stm32cubemx I've tried to configure the board to create a ble ibeacon.

So, now i can see the ibeacon from nrf app but isn't showed the name (N/A ibeacon). How can i see the name?

I've to change anything?

Sorry i'm really new in this field.

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
FilipKremen
ST Employee

Hello,

please change the IBeacon_Init() function like this: (ibeacon_service.c file)

 

Best regards,

Filip Kremen

static const char a_LocalName[] = {AD_TYPE_COMPLETE_LOCAL_NAME , 'B', 'E', 'A', 'C', 'O', 'N'}; /* Put the device in a non-connectable mode. */ ret = aci_gap_set_discoverable(ADV_NONCONN_IND, /*< Advertise as non-connectable, undirected. */ AdvertisingInterval, AdvertisingInterval, /*< Set the advertising interval as 700 ms (0.625 us increment). */ GAP_PUBLIC_ADDR, NO_WHITE_LIST_USE, /*< Use the public address, with no white list. */ sizeof(a_LocalName), (uint8_t*) &a_LocalName, /*< Do not use a local name. */ 0, NULL, /*< Do not include the service UUID list. */ 0, 0); /*< Do not set a slave connection interval. */

View solution in original post

2 REPLIES 2
FilipKremen
ST Employee

Hello,

please change the IBeacon_Init() function like this: (ibeacon_service.c file)

 

Best regards,

Filip Kremen

static const char a_LocalName[] = {AD_TYPE_COMPLETE_LOCAL_NAME , 'B', 'E', 'A', 'C', 'O', 'N'}; /* Put the device in a non-connectable mode. */ ret = aci_gap_set_discoverable(ADV_NONCONN_IND, /*< Advertise as non-connectable, undirected. */ AdvertisingInterval, AdvertisingInterval, /*< Set the advertising interval as 700 ms (0.625 us increment). */ GAP_PUBLIC_ADDR, NO_WHITE_LIST_USE, /*< Use the public address, with no white list. */ sizeof(a_LocalName), (uint8_t*) &a_LocalName, /*< Do not use a local name. */ 0, NULL, /*< Do not include the service UUID list. */ 0, 0); /*< Do not set a slave connection interval. */
Fust3
Associate

Perfect thanks!