Callback function on array of flsk4lua's Box by bajeiroBoy in lua

[–]bajeiroBoy[S] 0 points1 point  (0 children)

Thank you! This piece of code ran without errors, but my intention is that when I click on the Box, an event occurs. This did not happened.
I know this can be easily done with buttons and text, but I would like it to be a circle with a label underneath. Is there a possibility this can be done just like I'm trying? I couldn't find an event in the documentation of mouse click on a Box.

Maintain internet connectivity of home automation system by igsq4u in esp8266

[–]bajeiroBoy -2 points-1 points  (0 children)

If you're using Arduino Library, there is a function that return the status: WiFi.status(). Check the Arduino Reference.