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

I need a code where one nrf52sdk sends a message and another nrf52sdk recieves the message

i have 2 nrf52dks where one nrf52sdk sends a message and another nrf52sdk recieves the message....for that what should i do 

Thank you in advance

Parents Reply
  • Have you done as explained under Testing in the documentation for the Nordic UART Service Client example (see the quote below, where I have highlighted step 6)?

    Test the BLE NUS Client Example application by performing the following steps:

    1. Compile the BLE NUS Client Example application and program both the SoftDevice and the application on the Central board.
    2. On the Central board, observe that the BSP_INDICATE_SCANNING state is indicated. This shows that the application is scanning for a NUS service Peripheral.
    3. Compile the NUS application and program both the SoftDevice and the application on the Peripheral board.
    4. Observe that the NUS Peripheral is advertising.
    5. Once the connection is established, the BSP_INDICATE_CONNECTED state is indicated on both boards.
    6. Now it is possible to send data between the two boards. To do so, send data to one of the boards using the serial port. Observe that the data is displayed on the UART on the other board.
    7. Disconnect the devices, for example by pressing the Reset Button on the Central board. Observe that the boards automatically reconnect and that it is again possible to send data between the two boards.
Children
Related