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

Using nRF UART 2.0.. how does this app send info?

Hello, I'm using the nrf UART 2.0 app with nrf51822 and I'm wondering how a line of characters is sent using this app. For example if I write 'abcdefg' does the BLE receive it at once or one by one? or does this depend on how the Bluetooth is programmed?

Parents
  • The UART service uses a buffer of characters

    When you do a write from your app, if you send 7 characters the nRF51 will get an event to handle those 7 characters when they arrive (all together)

    If your app sends 1 character per Write, that's the way they will be received.

    Note, there is limit of 20 characters per write (this can be changed but its not easy to do or supported app BLE API's)

Reply
  • The UART service uses a buffer of characters

    When you do a write from your app, if you send 7 characters the nRF51 will get an event to handle those 7 characters when they arrive (all together)

    If your app sends 1 character per Write, that's the way they will be received.

    Note, there is limit of 20 characters per write (this can be changed but its not easy to do or supported app BLE API's)

Children
Related