Understanding the BLE NUS example

FormerMember
FormerMember

Hi everyone,

I'm currently trying to make sense of the ble_app_uart example (SDK v15.0.0, SD 132 v6, nRF52832 DK).

In particular the line

BLE_NUS_DEF(m_nus, NRF_SDH_BLE_TOTAL_LINK_COUNT);


bothers me.

I've read the BLE tutorials provided by Nordic. If I understood them correctly, a peripheral / server device is connected to one central / client device. My understanding of above mentioned line is that this UART service peripheral is able accept connections from multiple UART service clients which would violate aforementioned restriction connection.

Did I interpret the code wrong?

Regards,

lhochstetter

Parents Reply
  • FormerMember
    0 FormerMember in reply to Hakon

    Hi Hakon,

    thanks for your answer!

    Out of curiosity, what would happen if I changed NRF_SDH_BLE_TOTAL_LINK_COUNT to an integer > 1 and tried to connect with more than one central device?

    My guess is, that as soon as the connection to the first central device is established, the peripheral device would stop advertising.

    Regards,

    lhochstetter

Children
Related