Triggering the Sending of UART Tx Data Over BLE

I have built my software system, starting with the 'peripheral_uart' sample in the nRF Connect environment in Windows 10.  I connect to an external BLE connection (iPhone) and I want to send data to my iPhone only when an advertising event takes place.  The  'peripheral_uart' example only sends data when it receives data coming in on the UART Rx.  I have no need to receive any data and would like to trigger the sending of my data based on the reception of a specific advertising input scan.  Right now, in my modified 'peripheral_uart' sample, I send the most recently received advertising event data whenever (any) BLE Rx data is received.  I want it sent when the event takes place, not when I trigger it by sending it Rx data over BLE (since the iPhone has no idea when an advertising event takes place until it is told so).  This seems like it should be so easy, but I don't get it and would greatly appreciate anyone some help.  Thanks in advance!

Related