Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
pingpair_pl.pde

This is an example of how to do two-way communication without changing transmit/receive modes. Here, a payload is set to the transmitter within the Ack packet of each transmission. Note that the payload is set BEFORE the sender's message arrives.