I'm trying to use a ESP8266 with the Lua interpreter to communicate with an Arduino via UART.
I'm attempting to have it POST data to a webpage, so I can handle it further with a script and save it into a database. That works, all good.
The issue I have is that if I try and send a "sk:send()" command over 255 characters, the interpreter cuts off the end of the string, and problems occur (such as "unfinished string near '")'"). By the time I'm done sending all the HTTP header stuff, I'm left with very little room for the actual POST data.
I've tried calling send() twice in a row, first sending the header, then sending the data immediately after, but that doesn't seem to work.
Any suggestions how to get around this?
EDIT: I've managed to get it working using multiple send()'s. I think I may have been spitting data at it before it was ready, so I wrote a simple function on the Arduino that waits for a ">" back before sending new commands, and it seems to be working perfectly.
Cheers