xtal wrote:if using nodemcu after 0.9.6 use the Call Back's
Send 1
CB send 2
CB send x
CB close
I think this is meant to show how the "on sent" callback (CB in xtal's shorthand) can be used to continue the outgoing message, be that the content of a webpage that's being sent or (maybe?)any POST, GET etc. header that's more convenient to break into pieces.
Of course this means keeping track of where in your message you are. I think it makes sense for sending relatively large amounts of data e.g. static webpages from file in chunks (where a file pointer is maintained). But for sending requests or small dynamic web pages created on the fly, I'd suggest just doing LUA string concatenation and sending a single string.