As the title says... Chat on...

User avatar
By bram
#17680 There are a lot of webserver examples but does anyone know how to use the userinput from a textinput after a ready button click in your lua script.
User avatar
By TerryE
#17749 Yes, just the same way as in any other language. The HTML standard defines two methods for embedding field data: GET and POST, and this is pasted to the URI defined in the form. Text fields are encoded and will need to be decoded. There are lots of examples out there. You can even find examples of minimal Lua webservers, including for this chip.

The main issue that you will have is that you will have to get your implementation working within the ESP8266 memory constraints, and this will be your main challenge.

One way of approaching this is to first write and debug the URI decoder in Lua on your dev PC before porting it to the nodeMCU environment.