LED control version ${status.version}
LED ${status.led1 ? 'ON' : 'OFF'}
This toggle button is a stylised checkbox.
data-bind="status.led1" binds it to the device variable.
data-autosave="1" makes it send {"led1": VALUE} to the device every time the user toggles the
button. On the device side, read_status() or write_status() are called every time
the LED state is read or written.
Open this page in two or more browser windows to see how
the dashboards stay synchronized when changes are made
in any of them.
To customize this dashboard, follow
https://mongoose.ws/docs/guides/web-dashboard-guide/