I'm unable to build a the hello-world (from the examples) app with support for NimBLE COC data transport. Using idf.py menuconfig, I set CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM to 1.
When make this change and try to build, I see the following error when building hello-world :
Code: Select all
In file included from ../../../../components/bt/host/nimble/nimble/porting/nimble/include/syscfg/syscfg.h:9,
from ../../../../components/bt/host/nimble/nimble/nimble/include/nimble/ble.h:25,
from /Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c:22:
/Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c: In function 'ble_l2cap_coc_chan_alloc':
../../../../components/bt/host/nimble/port/include/esp_nimble_cfg.h:13:49: error: 'MYNEWT_VAL_BLE_L2CAP_COC_MPS' undeclared (first use in this function); did you mean 'MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM'?
#define MYNEWT_VAL(x) MYNEWT_VAL_ ## x
^~~~~~~~~~~
/Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c:250:20: note: in expansion of macro 'MYNEWT_VAL'
chan->my_mtu = MYNEWT_VAL(BLE_L2CAP_COC_MPS);
^~~~~~~~~~
../../../../components/bt/host/nimble/port/include/esp_nimble_cfg.h:13:49: note: each undeclared identifier is reported only once for each function it appears in
#define MYNEWT_VAL(x) MYNEWT_VAL_ ## x
^~~~~~~~~~~
/Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c:250:20: note: in expansion of macro 'MYNEWT_VAL'
chan->my_mtu = MYNEWT_VAL(BLE_L2CAP_COC_MPS);
^~~~~~~~~~
[428/849] Building CXX object esp-idf/asio/CMakeFiles/__idf_asio.dir/asio/asio/src/asio.cpp.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Many thanks,
Dave