NetBurner 3.5.0
PDF Version |
|
This example is an advanced version BasicWebConfig example that implements the content with JavaScript and jQuery. It also demonstrates how to store and display custom application data in the AppData section.
Configuration objects are created when the device first boots, then they are stored so they are persist after the device has been power cycled. The web interface adds custom styling beyond the basic server presentation to view and set the values. The currently available configuration objects are:
config_obj
// base object, used as a container for other objectsconfig_bool
// boolconfig_int
// intconfig_double
// doubleconfig_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.