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

Can not disable nus_c logging

Hi Nordic,

As far as I can see, there is BLE_NUS_CONFIG_LOG_ENABLED defined for ble_nus in sdk_config.h. However, I cannot find the similar BLE_NUS_C_CONFIG_LOG_ENABLED for ble_nus_c.

Is it missing? Or it is designed like this?

I found this issue when there is a dump message in RTT:
<debug> ble_nus_c: Client sending data

I can not find a way to disable this message. Would you please suggest? Thanks,

Vincent

Parents
  • Hi Vincent.

    BLE_NUS_C_CONFIG_LOG_ENABLED

     It is not defined as you say. The central uses the global NRF_LOG_ENABLED to enable/disable logging.

    You could try to implement it yourself by having a look at the peripheral sides implementation.

    If you look at ble_nus.c, you have the definition of that macro there;

    You can port it if you like.

    Best regards,

    Andreas

Reply
  • Hi Vincent.

    BLE_NUS_C_CONFIG_LOG_ENABLED

     It is not defined as you say. The central uses the global NRF_LOG_ENABLED to enable/disable logging.

    You could try to implement it yourself by having a look at the peripheral sides implementation.

    If you look at ble_nus.c, you have the definition of that macro there;

    You can port it if you like.

    Best regards,

    Andreas

Children
Related