Go through the UART datasheet and look for the APIs GetRxBufferSize() and GetData().
thank you Bob, I'm know able to get characters from the RX buffer and transmit them as HID key-press/release.
Where can I find the value of the connection and advertising interval setup in the project ?
Please have a look at the BLE component configuration Window 'GAP Settings' tab.
when running in PSoC debugger all is running - GAP connecting, reading from RX buffer and sending as HID keypresses and going to CySysPmDeepSleep();
When leaving debug (shift+F5) - UART RX stops working.
Checking before going to deepsleep seams not good enough:
if(((UART_DEB_SpiUartGetTxBufferSize() + UART_DEB_GET_TX_FIFO_SR_VALID) == 0u) &&
((UART_DEB_SpiUartGetRxBufferSize() + UART_DEB_GET_RX_FIFO_SR_VALID) == 0u))
A hint pls.