In a Unix level sockets application, I can imagine a receiver of data not asking for more data until it executes a "read()" call to read some more. However, in an ESP8266, I believe we are supposed to register a receiver callback function that gets invoked whenever the partner sends new data and the receiver is expected to cache the data for later consumption. This doesn't appear to include any flow control function or capability. As such, my question becomes ... how would I achieve my goal of throttling the amount of data sent by the transmitter through my ESP8266 receiver?
In a Unix level sockets application, I can imagine a receiver of data not asking for more data until it executes a "read()" call to read some more. However, in an ESP8266, I believe we are supposed to register a receiver callback function that gets invoked whenever the partner sends new data and the receiver is expected to cache the data for later consumption. This doesn't appear to include any flow control function or capability. As such, my question becomes ... how would I achieve my goal of throttling the amount of data sent by the transmitter through my ESP8266 receiver?