Looking at the rx callback and the BLEClientUART wrapper I don't see how this information is available.
Code: Select all
void cent_bleuart_rx_callback(BLEClientUart& cent_uart)
{
char str[20+1] = { 0 };
cent_uart.read(str, 20);
Serial.print("[Cent] RX: ");
Serial.println(str);
if ( bleuart.notifyEnabled() )
{
// Forward data from our peripheral to Mobile
bleuart.print( str );
}else
{
// response with no prph message
clientUart.println("[Cent] Peripheral role not connected");
}
}
22:46:58.968 -> [Cent] RX: 246622
22:46:58.968 -> [Cent] RX: