You can chat about native SDK questions and issues here.
User avatar
By Maxim Kulkin
#70803 Hi. I'm writing a small project and I needed to implement a small protocol that transfers binary data on top of HTTP. I started with ESP8266WebServer but eventually found out that it uses WiFiClient::readString() (to read data from wire and parse it to HTTP request) which returns String object. The problem is that String object does not play nice with zero chars (e.g. if you do String::substring(), it will stop at first zero char without copying the rest).

Eventually I ended up implementing my own class - Buffer - which is String-like object with focus on binary data.

Do you think it is worth adding to SDK ? Do you think it worth fixing String to handle binary data (although that might break some existing behavior) ?
User avatar
By philbowles
#70961 Why not use a websocket? Kinda "does it over http" out-of-the-box and works with bin data. Why reinvent wheel with own protocol?

check out arduino websockets library