Is it possible to setup the nrf52 with the HRS profile along with UART. I'd like to send heart rate date along with UART messages.
I'd also like to have an android app to get the UART data and another app to get the HRS data.
thanks,
Is it possible to setup the nrf52 with the HRS profile along with UART. I'd like to send heart rate date along with UART messages.
I'd also like to have an android app to get the UART data and another app to get the HRS data.
thanks,
Yes. You can have more than one service
So you could merge the code from the HRS and NUS examples
One thing to note is that the HRS is a 16 bit service ID and the NUS is a 128 bit service Id, so you will need to add these separately, rather than being able to add an array of 16 bit service ID's
Also, the 128b service ID takes 18 bytes of the 31 bytes available in the advertising packet, the HRS service will take 4 bytes, and the flags byte (I think this is 3 bytes), and the appearance data is I think 3 bytes which only leaves 28 bytes for the name (2 bytes + number of chars in the name)
So if my calculations are correct, this only allows a name of 3 characters for the name
The UUID list can also be placed in the scan response packet. This is done in the ble_app_uart example.
The UUID list can also be placed in the scan response packet. This is done in the ble_app_uart example.