How to send a Bluefruit UART message with a null character
To send a Bluetooth Low Energy (BLE) UART message that ends with a null character (i.e. "\0"), create a uint_8 array that holds the bytes of your message and send the message using the bleuart.write function.
The following project assumes that you have setup your Arduino project to work with an Adafruit nRF52 Bluefruit LE chip.
To learn how to set this up, consult the guide below.
After setting up the Adafruit nRF52 Bluefruit LE, you can send a message that ends with a null character use code similar to that below.
As noted in the code above, this message breaks the default 20 byte Maximum Transmission Unit (MTU) and requires you to change the Bluefruit's MTU to allow for it.
To learn how to do this, consult the tutorial linked below.
Looking to send a UART message that does not terminate with a null character ?
To learn how to send a UART message using an Adafruit Bluefruit nRF52 LE that does not end with a null character, consult the tutorial below.