NetBurner 3.5.0
PDF Version |
|
This program shows the basics of using NetBurner's config system, specifically, how config objects can be nested inside each other. The config system stores boot and interface information, such as default BaudRate and current IP settings, and also provides a system for the user to define and store their own persistent variables.
In this example, we have expanded on the ConfigClass example, and created an additional config class that is used to nest several instances of our previously defined class. This nesting allows for control over the structure and hierarchy of the data when it is saved in the flash as a JSON blob. The currently available config objects that can be used are as follows:
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 Address