Toggling GPIO using BLE UART

Hello I am using nRF52832 board and trying to toggle the LEDs using ble uart code. I tried to modify the following function as follows. I am able to send the 1 from the nRF connect app and the LED glows . But when I send 0, the LED does not turn off. Am I doing something wrong or I have to call the function in the main function as well? I have modified the function ble_peripheral_uart code.                                                                                                                                                                                                            

Parents
  • Hi Akshat,

    The signature of nus_data_handler() you are showing here is not similar to that of our latest nRF5 SDK version, v17.1.0. What SDK version are you using?

    If you are starting, I would recommend you check out the nRF Connect SDK (NCS), which is newer and is in active development.
    If a move to NCS is too drastic (it could be), I would recommend at least using the latest version of nRF5 SDK instead. That would be v17.1.0.

    Hieu

Reply
  • Hi Akshat,

    The signature of nus_data_handler() you are showing here is not similar to that of our latest nRF5 SDK version, v17.1.0. What SDK version are you using?

    If you are starting, I would recommend you check out the nRF Connect SDK (NCS), which is newer and is in active development.
    If a move to NCS is too drastic (it could be), I would recommend at least using the latest version of nRF5 SDK instead. That would be v17.1.0.

    Hieu

Children
Related