Post your best Lua script examples here

User avatar
By jclmdt
#62246 Hi,

I want to connect my Arduino to the WiFi of lolin nodemcu. Currently the lolin wifi chip (with nodemcu firmware using lua) has been successfully set as a soft AP, and is able to broadcast the SSID in the networks. Now I need to connect the Arduino to the SSID of the lolin chip so that the website on Arduino can have internet access (need it for remote control).

The Arduino has a WiFi library with it, but it works only for its own line of WiFi shield. In my case, the library is not able to use in the Arduino code to connect to the lolin chip. My question is, how am I able to connect the Arduino to the broadcast SSID of the lolin chip so that the website in Arduino has internet connection. Tried to search online to no avail. Need some code samples for it too.

Help is appreciated, thank you.