This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

No member found. 'battery_level_char_attr_md'

I am trying to build the simplest nRF52 BLE Peripheral application (Lightbulb use case). I am facing below mentioned errors:

Building ‘ble_lightbulb’ from solution ‘ble_lightbulb_pca10040_s132’ in configuration ‘Debug’
Compiling ‘main.c’
ble.h
main.c
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_char_attr_md'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_OPEN'
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_char_attr_md'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_OPEN'
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_char_attr_md'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_OPEN'
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_char_attr_md'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_OPEN'
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_char_attr_md'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS'
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_char_attr_md'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS'
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_report_read_perm'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_OPEN'
'ble_bas_init_t' {aka 'struct <anonymous>'} has no member named 'battery_level_report_read_perm'
in definition of macro 'BLE_GAP_CONN_SEC_MODE_SET_OPEN'
Compiling ‘bsp_btn_ble.c’
Build failed

Related