Doodle3D / doodle3d-client

The Doodle3D web interface that people can access on computers or tablets to draw doodles and control the Doodle3D WiFi box.
www.doodle3d.com
GNU General Public License v2.0
3 stars 8 forks source link

improve detection of wlan state #224

Open woutgg opened 10 years ago

woutgg commented 10 years ago

Currently, the network reconfiguration code contains a lot of long delays and retry mechanisms to make sure the networking subsystem (just wifi really) is done with whatever it was asked to do. This introduces unnecessarily long delays and sometimes half/wrong information; which is all very bad for the user experience.

We might be able to improve this by using ubus, an event system openwrt uses. A lua binding exists, as well as a shell command. More information: http://wiki.openwrt.org/doc/techref/ubus. For instance to get wlan state information, run: ubus call network.interface.wlan status.

olijf commented 8 years ago

ubus also offers the possibility to talk to it directly using http/JSON. probably completely eliminating wifi/network connection things in the lua API (certain parts can be shielded with a login)