Implementing the Dynamic Payload Length Feature between two nRF24L01+ Modules
There is an example to send ESP packets in there product description page

select the download tab and there is an application note nAN24-12 also see the product specification document of nRF24L01 under section 7.3 (page 25) which describe the ES packet format