# Device Configurator demo.

This page demonstrates how Mongoose could be used to implement device settings page.

### How to show device parameters on the page

This page has embedded `<!--#call parameter_name -->` blocks. For each such block, mongoose triggers `NS_SSI_CALL` event, passing `parameter_name` string as an event parameter. A callback then can print some content, which will replace the `<!--#call parameter_name -->` block. Take a look at `handle_ssi_call()` to see how that is done.

### How to save updated values

When Save button is clicked, this page makes Ajax call and passes values to the backend in a POST request. Backend extracts values from the POST request and updates the configuration. Take a look at `handle_save()` to see how that is done.

You can change values, click Save button, refresh this page - make sure settings values stay intact between refreshes.

Device settings Setting 1: Setting 2: