ThomasBarth / WebSockets-on-the-ESP32

WebSocket example project for the Espressif ESP32
73 stars 17 forks source link

How to send binary data for faster send and receive? #3

Open williamesp2015 opened 7 years ago

williamesp2015 commented 7 years ago

Text data transmission is slow compare to binary. How can send and receive binary data?

ThomasBarth commented 7 years ago

This implementation accepts a pointer and a size and does not care about the datatype. How to generate char arrays (aka strings) efficiently, is not part of the websocket.

ThomasBarth commented 7 years ago

Or do you mean as a different transfer mode for websocket protocol? Im not sure about the lwip API in this case.