NetBurner 3.5.6
PDF Version |
This is an advanced embedded web configuration system built for NetBurner devices. It provides a modern, responsive web interface for managing device configuration objects, combining C++ backend configuration management with a JavaScript/jQuery frontend. The system allows users to configure thermostat settings, email notifications, and other application-specific parameters through a web browser.
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
The application is built around a hierarchical configuration system using C++ classes:
config_obj
- Base container object for organizing other configuration objectsconfig_bool
- Boolean valuesconfig_int
- Integer values config_double
- Double precision floating point valuesconfig_string
- String valuesconfig_chooser
- Multiple choice dropdown optionsconfig_pass
- Password fieldsconfig_IPADDR4
- IPv4 addressesconfig_IPADDR6
- IPv6 addressesconfig_MACADR
- MAC addressesThermostat1 Class**
m_maxTemp
- Maximum temperature setting (default: 100)m_setTemp
- Target temperature setting (default: 30)m_minTemp
- Minimum temperature setting (default: 10)m_powerMax
- Maximum power setting (default: 200)m_active
- Thermostat active status (default: true)
Thermostat2 Class** (extends Thermostat1)
m_tempRec1
- Temperature record 1 (default: 101)m_tempRec2
- Temperature record 2 (default: 102)
EmailNotify Class**
m_normal
- Normal notification email addressm_emergency
- Emergency notification email addressm_choose
- Action chooser (Alert, TurnOff, Crash options)The web interface features:
The application provides a command-line interface through the serial port:
C
- Show complete configuration treeE
- Show email notification settingsF
- Show and modify email normal contact addressN
- Show IP address for first network interfaceS
- Show and modify global string settingT
- Show thermostat 1 settingsV
- Show and modify global integer value2
- Show thermostat 2 settings6
- Show all interface IP addresses and system time?
- Display command listThe system automatically configures network settings:
To extend the system:
The application displays build timestamp and provides network status information including: