Sending binary Data over ESP8266
Posted:
Wed Feb 04, 2015 2:26 am
by disonance
Hi guys,
I'm using the ESP8266 as a WiFi "modem" and my main processor is a stm M3 arm based chip that communicates to the ESP via usart.
AT+CIPSEND only handles characters, which would be useful for maybe a simple html. However, if i'm looking to setup a webserver, I probably need to send HTML and pictures thru a binary based transfer.
Does anyone know how this can be done ?
br
Diso
Re: Sending binary Data over ESP8266
Posted:
Wed Feb 04, 2015 11:12 am
by Aonko
Most people here run the web server directly from the esp8266 module.
http://www.esp8266.com/viewtopic.php?f=6&t=376http://www.picotcp.com/Most transparent uart bridges I have seen don't support binary transfer. I guess it would be possible to encode it with base64 something like convert to base64 and then convert from base64, but it would be hard and more importantly it would waste too many resources. Maybe someone more knowledgable than me will chime in here.
Re: Sending binary Data over ESP8266
Posted:
Wed Feb 04, 2015 7:00 pm
by disonance
Aonko wrote:Most people here run the web server directly from the esp8266 module.
http://www.esp8266.com/viewtopic.php?f=6&t=376
http://www.picotcp.com/
Most transparent uart bridges I have seen don't support binary transfer. I guess it would be possible to encode it with base64 something like convert to base64 and then convert from base64, but it would be hard and more importantly it would waste too many resources. Maybe someone more knowledgable than me will chime in here.
Thanks for the info AonKo , I was really hope to be able to keep the esp8266 as a WiFI "bridge" and send maybe html files and associated pictures from the M3.
Webserver directly from the ESP8266 will probably work as well.