How to add custom content in the ASK package sent by ESB's RX to TX

I hope to add custom data to the ASK package returned to TX in the ESB application. How can I add it in the input? How should the tx side read the custom data.

Parents
  • Hi Jianming, 

    Could you give more information about the chip you use and the SDK you use ? 

    If you are using NCS , you can have a look at the esb_write_payload() function. 

    "When the module is in PRX mode, the payload is queued for when a packet is received that requires an acknowledgement with payload."

    So what you need to do is to call esb_write_payload() function with the payload you want to include in the ACK package before you receive the incoming package. 

    You can have a look at the documentation here

Reply
  • Hi Jianming, 

    Could you give more information about the chip you use and the SDK you use ? 

    If you are using NCS , you can have a look at the esb_write_payload() function. 

    "When the module is in PRX mode, the payload is queued for when a packet is received that requires an acknowledgement with payload."

    So what you need to do is to call esb_write_payload() function with the payload you want to include in the ACK package before you receive the incoming package. 

    You can have a look at the documentation here

Children
Related