I am trying to set up ack in my PTX so that when my PRX is off or out of range I get the case TX_FAILED event and when it is on and receiving data my PTX will get the case TX_SUCCESS.
So far PTX is either always SUCCESS when I have tx_payload.noack =true; and I always get FAILED when this is set to false. I have verified that the PRX is receiving the data, and is set up to send back a few bytes in a payload along with its ack. I am getting both RX_RECEIVE and TX_SUCCESS from the PRX.
Edit: Also I would like to add that my PTX never triggers the RX_RECEIVE event, so I am not sure how I can read out the ack payload from the PRX that I created with nrf_esb_write_payload()
Do you have any tips for what I can be doing wrong?
Included is the main.c for the ptx and prx both running on 2 nrf52840 DK boards.
Best regards,
jake