I am trying to connect two thingy:52 and a Polar H10 heart rate monitor simultaneously to nRF9160 dk, but while building the application I am encountering this error. Can anyone help me in resolving it? Thanks!
I am trying to connect two thingy:52 and a Polar H10 heart rate monitor simultaneously to nRF9160 dk, but while building the application I am encountering this error. Can anyone help me in resolving it? Thanks!
Hi Shreya,
Do you have that warning during compilation or only during code editing?
Are you trying to setup the nRF9160 DK as a Central device?
My guess for what's happening here is that your project is based on a nRF9160 DK application where only the Peripheral role is configured. To add Central functionality, you need to use CONFIG_BT_CENTRAL. At the very least, you need to add CONFIG_BT_OBSERVER to have the scanning feature.
Hieu
Hi Shreya,
Do you have that warning during compilation or only during code editing?
Are you trying to setup the nRF9160 DK as a Central device?
My guess for what's happening here is that your project is based on a nRF9160 DK application where only the Peripheral role is configured. To add Central functionality, you need to use CONFIG_BT_CENTRAL. At the very least, you need to add CONFIG_BT_OBSERVER to have the scanning feature.
Hieu