Context. An Arduino UNO is logging ~8 MB files with formatted text lines into an SD card. I have plugged an ESP8266-01 in a software serial port to Arduino. A computer inside LAN is going to eventually request a log file, so it can process the data of the sensor. Both devices are connected to a common router.
Goal. What I need is a way to send wirelessly the content of the file from Arduino to the computer. No web server, just file transfering.
I've flashed with NodeMCU since I have basic experience with Lua and I find it more pleasant to work with rather than AT commands.
Here is my bare plan. Make ESP8266 listen to a signal, through serial tell Arduino the name of the file it has been requested to send, Arduino sends line by line the content of the file, ESP8266 sends line by line via WiFi.
I'm looking for an example code that can help. Any ideas or advice or link?