NetBurner 3.5.0
PDF Version |
|
The system configuration web page interface is located on network port number 20034. This example demonstrates how to provide the same configuration interface as part of the application web server on port 80 (or 443 for SSL/TLS), so that the configuration web pages are consistent with the rest of the application web interface.
The web page is dynamically generated, and provides access to view and/or modify boot and interface settings, such as default serial port baud rates and IP addresses, as well as application specific data.
The code used to generate and process the web form is in html/index.html
. This example does not use any external JavaScript libraries, and all of the form generation code is located at the bottom of index.html. For a more advanced example that utilized Bootstrap and jQuery, please see the CustomWebConfig example.
Currently available config objects that can be used are as follows:
config_obj
// base object, used as a container for other objectsconfig_bool
// booleanconfig_int
// integerconfig_double
// double floatconfig_string
// stringconfig_chooser
// multiple choice optionconfig_pass
// passwordconfig_IPADDR4
// IP4 Addressconfig_IPADDR6
// IP6 Addressconfig_MACADR
// MAC AddressNote that because we are only processing the config object, we are able to avoid writing a custom POST handler that is used in the other examples. If you include more to your web interface than is provided here, that will need to be incorporated as well.