NetBurner 3.5.6
PDF Version
HTML Only Configuration

HTML Only Configuration Application

Overview

This is a simple web-based configuration application that provides an HTML interface for configuring network settings and system parameters. The application runs on port 80 and allows users to modify configuration values through a web form interface.

Features

  • Web-based Configuration: Simple HTML form interface for configuration management
  • Network Configuration: Supports IPv4 network settings (enet0.ip4)
  • Reboot Control: Checkbox option to reboot system after updating configuration values
  • Styled Interface: Clean, professional styling with a modern table design
  • Remote Console: Enables remote console access for debugging and monitoring

File Structure

main.cpp # Main application entry point
index.html # Configuration form interface
style.css # Styling for the web interface

Application Components

main.cpp

The main application file that:

  • Initializes the network stack
  • Enables system diagnostics
  • Starts the HTTP server on port 80
  • Waits for active network connection
  • Enables remote console access
  • Implements the HTML post configuration handler

index.html

The web interface that provides:

  • Configuration form with POST method to postcfg.html
  • Table-based layout for configuration parameters
  • Network IP configuration section (enet0.ip4)
  • Reboot option checkbox
  • Submit button to save configuration

style.css

Styling that includes:

  • Clean, modern table design with shadow effects
  • Alternating row colors for better readability
  • Green accent color (#009879) for headers and borders
  • Responsive font sizing and spacing
  • Active row highlighting capability

Configuration Options

The application currently supports:

  1. Network Configuration (enet0.ip4)
    • IPv4 network settings for ethernet interface
  2. System Reboot (rebooter)
    • Checkbox to enable automatic reboot after configuration changes

Technical Details

  • Framework: NetBurner NNDK (NetBurner Network Development Kit)
  • Web Server: Built-in HTTP server on port 80
  • Configuration Handler: HtmlPostConfigVariableHandler class
  • Network Stack: NetBurner real-time network stack
  • System: Real-time operating system (NBRTOS)

Usage

  1. Connect to the device's IP address via web browser
  2. Navigate to the configuration page (index.html)
  3. Modify the desired configuration parameters
  4. Check the reboot option if system restart is needed
  5. Click "SaveConfig" to apply changes

Development Notes

  • The application uses NetBurner's configuration system with <!--CONFIGTABLE--> directives
  • Additional configuration objects can be added by including appropriate header files
  • System diagnostics are enabled (should be removed for production)
  • The application includes a 5-second timeout for network initialization

Customization

To add additional configuration parameters:

  1. Include the appropriate header files in index.html
  2. Add new <!--CONFIGTABLE--> entries for your configuration objects
  3. Rebuild and deploy the application

Dependencies

  • NetBurner NNDK framework
  • Standard NetBurner libraries (init.h, nbrtos.h, system.h, etc.)
  • HTTP POST handling library
  • Remote console library