Skip to content

Control Page

Boaz Feldboim edited this page Aug 29, 2021 · 5 revisions

The main page of the web application is the control page:

Control Page
Using this page you can manually initiate router or modem recovery cycles. You see the time since last recovery in the form: days.hours:minuts:seconds. The application is checking the connectivity once in every few minutes (configurable). So if you think that there is some problem with connectivity you can press the "Check Connectivity" button and the application will immediately check the connectivity and will start recovery cycles if necessary. When recovery is on going the screen shows the current state and is automatically updated when recovery phases are changing and when connectivity is resumed. Following is a screenshot when the router power is disconnected. Router Recovery

After a few seconds when router power is turned on, the switch state is set to on too. When recovery is on going, all screen controls are disabled.

The way that the screen is updated is using HTTP event-stream communications. This way the server (Arduino) is updating the client (the browser) whenever there is a change in the state. This holds a TCP socket opened during the entire time that the client is present. This limits the number of clients that can simultaneously be connected since the number of sockets is limited. Especially in case of Ethernet Shield is used.