Uniot Core
0.8.1
Loading...
Searching...
No Matches
Network Controller
Collaboration diagram for Network Controller:

Namespaces

namespace  uniot
 Contains all classes and functions related to the Uniot Core.
 

Detailed Description

This file provides a comprehensive network management controller that combines network connectivity with user interface elements. The NetworkController acts as a bridge between the NetworkScheduler and physical hardware components like buttons and LEDs, providing intuitive device control and status indication.

Key features:

The controller implements intelligent behavior patterns:

Example usage:

Credentials credentials;
NetworkScheduler networkScheduler(credentials);
NetworkController controller(networkScheduler,
BUTTON_PIN, LOW, // Button on pin with active LOW
LED_PIN, HIGH); // LED on pin with active HIGH
TaskScheduler scheduler;
controller.pushTo(scheduler);
networkScheduler.pushTo(scheduler);
controller.attach();
networkScheduler.attach();