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

Add BLE LBS to NFC examples

Two (2) nRF52840 DKs, SDK 17.0.2

I believe I have added the necessary code from ble_blinky_apps both peripheral and central to their respective NFC reference role examples, making sure to set the correct macros in the sdk_config as well the initializing the right functions in main. However, I noticed that the NFC example initializes its normal ble and bsp event handlers a bit differently than most other ble exmaples that ship with SDK 17.0.2. My problem right now is that everything compiles and the NFC example starts correctly, as I can observe the "NFC Connection Handover BLE Central/Peripheral device example started." INFO messages on my com listener, yet none of the buttons seem to trigger any events anymore. I've done some debugging and can confirm the each button gets initialized properly in buttons_init and bsp_event_assignment, but still seeing nothing change upon pressing any of the buttons on the DK. As if the addition of the LBS has disrupted the functionality of the DK buttons? Might there be an easy explanation for this?

If not, I could use some assistance in adding a simple BLE Button Service to momentarily turn on an LED on the DK running the NFC Central example via a button on the DK running the Peripheral NFC example. 

Thanks in advance,

Sam

Parents
  • Hi

    Have you set the BLE_LBS_ENABLED (BLE_LBS_C_ENABLED for the client) in the sdk_config.h header file when adding the BLE_LBS service? It sounds very strange that you're not able to see anything useful in your debug log. Can you try setting some returns so you can see if any return values are triggered when the buttons are pressed.

    Best regards,

    Simon

Reply
  • Hi

    Have you set the BLE_LBS_ENABLED (BLE_LBS_C_ENABLED for the client) in the sdk_config.h header file when adding the BLE_LBS service? It sounds very strange that you're not able to see anything useful in your debug log. Can you try setting some returns so you can see if any return values are triggered when the buttons are pressed.

    Best regards,

    Simon

Children
Related