Skip to main content
Associate II
March 25, 2025
Solved

ibeacon local name isn't showed on stm32wb5mm-dk

  • March 25, 2025
  • 2 replies
  • 560 views

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

 

 

Best answer by FilipKremen

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. */

2 replies

FilipKremen
FilipKremenBest answer
ST Employee
March 25, 2025

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. */
Fust3Author
Associate II
March 26, 2025

Perfect thanks!