Sample code to transfer message between connected devices and development kit.

Hi,

I'm using nrf52840 DK  and android based mobile with nrf connect for mobile app installed. 

I would like to execute a freestanding sample code to transfer message between the phone and the kit 

So suggest me a best suitable sample code available in nrf library.

  • Hi,

    Do you want to transfer arbitrary data? If so, you need some form of app on the phone, as iOS or Android does not come with any generic app that lets you exchange arbitrary data over Bluetooth LE out of the box. The simplest way to exchange data between a phone and a nRF over BLE is probably to use the Nordic UART service (NUS) on the nRF side (see Bluetooth: Peripheral UART sample if using the nRF Connect SDK, or UART/Serial Port Emulation over BLE if using the older nRF5 SDK).

    Then you can use for instance nRF Connect for mobile as a phone app, or your own app on the phone side and typically make your own phone app for this purpose at some point. If you need a simple Bluetooth app for Android as starting point for making your own app, you can refer to nRF BLINKY (note that this does not support NUS out of the box, but it demonstrates how to build a simple app for a custom Bluetooth service

Related