Hi
i want to create a bluetooth beacon which should get input in gatt(UUID,name,major,minor..then it should be advertise with the new UUID.
Iam configuring it with ibeacon.i can get the payload through gatt.but when readvertising there is an issue.
iam facing error in this line
BT_DATA(BT_DATA_MANUFACTURER_DATA, manufacturer_data, MANUFACTURER_DATA_LENGTH),
my error is
C:/ncs/v2.8.0/zephyr/include/zephyr/bluetooth/bluetooth.h:474:25: error: initializer element is not constant
474 | .data = (const uint8_t *)(_data), \
| ^
C:/Users/Sara/Documents/PlatformIO/Projects/workspace/ibeacon/src/main.c:219:5: note: in expansion of macro 'BT_DATA'
219 | BT_DATA(BT_DATA_MANUFACTURER_DATA, manufacturer_data, MANUFACTURER_DATA_LENGTH), // Use sizeof to get length
| ^~~~~~~
C:/ncs/v2.8.0/zephyr/include/zephyr/bluetooth/bluetooth.h:474:25: note: (near initialization for 'ad[1].data')
474 | .data = (const uint8_t *)(_data), \
| ^
C:/Users/Sara/Documents/PlatformIO/Projects/workspace/ibeacon/src/main.c:219:5: note: in expansion of macro 'BT_DATA'
219 | BT_DATA(BT_DATA_MANUFACTURER_DATA, manufacturer_data, MANUFACTURER_DATA_LENGTH), // Use sizeof to get length
| ^~~~~~~