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

User avatar
By forlotto
#32778 USING LUA
how would I setup init.lua to buffer a page as an AP
that would have:
boxes for setting up your wifi station info ssid, password
2 radial buttons static, dynamic
3 boxes get buffered if static is selected ip,netmask,gateway
1 submit button the submit file would submit and parse the info to be written to the server.lua
1 load server button to load server.lua right away
And last I want to wait 5 minutes and then load server.lua automatically (in case of power loss)

This way no matter where I take my device I can connect to a different wifi or if I change my wifi password, ssid, hardware etc... I could change the info easily from a web interface using any wireless device and simply connecting to it as an access point.

This is what would be required I know but how to put this into code and make it work if possible would be nice.

There are things I don't know like when you write line do you need to include the line number, the [[ brackets etc...

I dunno if it is even possible to serve a page as an access point they do it with your wifi router I don't see why you couldn't do it with nodemcu but I am not entirely sure.

This should be important to anyone if they want to have ease of use with their IOT device.

Example of code would be nice if possible.

Really hoping for a response on this one.
User avatar
By ohgary
#32982 I am trying to do the same thing. Getting into AP is pretty easy but I am having issue with getting data into the esp after I connect to the esp in AP mode. I can do simple on/off commands but text imput is an issue.

Anyone have a way to get text data into a lua program from a web view?
User avatar
By forlotto
#32993 Yeah I will have to work it out I finally built my device muahahaha just need code to handle the wifi portion of it I dislike the whole zero ability to easily change wifi settings without hooking to a pc and such.

I can likely figure it out in time just did not want to reinvent the wheel although it seems that is the way it goes you have a foundation of basic stuff that is really really basic then you have a couple of odd things here or there to point you in the right direction so I'll check a few things try a few things in a loop until I brute force my way through it lol!

Wish you the best of luck I doubt we will see any help with this one if it has not been answered already but I know it can be done with basic I seen mmiscool do it nice setup he had really. But I'm going to continue to try native code till I get a bit more figured out I'm sticking with LUA.

Thanks for your input though nice to know there are a few folks out there searching for similar issues. If you figure out anything let me know and I'll do the same.

Take Care!