Huzzah esp8266 uart bridge

Hi all,

I have been playing with the huzzah esp8266 last weeks, unfortunately with some struggles....

The idea:

Huzzah is setting up a access point, wireless client connects and requests a SD card file. (.htm .js .csv)

The file is being fetched from a arduino mega with a SD card shield:
Huzzah--->UART--->arduino mega--->SD card

Difficult part:

Some files that are being requested can be up to +- 150 kb in size. sending this file over uart byte by byte and directly send it to the connected client… can be quite difficult (for me anyway)

Where is goes wrong:

  1. Sometimes not all data gets to the wifi client. So a half .htm file is being served by the accespoint. In text.
  2. Usually the accespoint serves only one file, then a reboot is required. (power off – power on)
  3. I think I am trying something with the huzzah the libraries does not support?. (I don’t have the knowledge to understand the libraries for a 100%.

I will post the code as attachment.

huzzah.ino (737 Bytes)

mega.ino (1.83 KB)