How iotmanagerproject/iotmanager works
IoTManager is ESP8266/ESP32 smart-home firmware: it connects peripherals to Wi-Fi, exposes local browser control and optional MQTT-based remote app control, and runs user-defined device scenarios. The graph preserves the documented sensor/actuator, display, and integration capabilities. Source excerpts show startup and scenario dependencies; several subsystem links are documented at product level because their implementation files were not sampled.
Main entry points: Main.cpp Firmware startup · MqttClient.cpp MQTT client · IoTScenario.cpp Scenarios · IoTItem.cpp Device items
Components 21
Firmware runtime
- Firmware startup
src/Main.cpp - Shared state
include/Global.h - Periodic tasks
src/PeriodicTasks.cpp - Configuration
src/ESPConfiguration.cpp - Persistent files
src/EspFileSystem.cpp
Connectivity and control
- Wi-Fi connection
include/utils/WiFiUtils.h - MQTT client
src/MqttClient.cpp - Local web server
src/StandWebServer.cpp - WebSocket control
src/WsServer.cpp
Device logic
- Device items
src/classes/IoTItem.cpp - Scenarios
src/classes/IoTScenario.cpp - Sensor modules
src/modules/sensors - Actuator modules
src/modules/exec
Product extensions
- Home discovery
src/classes/IoTDiscovery.cpp - Display modules
src/modules/display - Firmware upgrade
src/UpgradeFirm.cpp - Time service
src/NTP.cpp
Other components
- Home operator
- Mobile app
- MQTT broker
- Peripherals
Connections 22
- Home operator → Peripherals: connects
- Firmware startup → Persistent files: initializes
src/Main.cpp - Firmware startup → Local web server: initializes
src/Main.cpp - Firmware startup → WebSocket control: initializes
src/Main.cpp - Firmware startup → Periodic tasks: schedules
src/Main.cpp - Firmware startup → Scenarios: owns
src/Main.cpp - Firmware startup → Configuration: initializes
- Firmware startup → Wi-Fi connection: connects
- Wi-Fi connection → MQTT broker: connects
- Mobile app → MQTT broker: connects
- Mobile app → MQTT client: controls through
- MQTT client → MQTT broker: publishes and subscribes
- Home operator → Local web server: controls locally
- Peripherals → Sensor modules: provide readings
- Actuator modules → Peripherals: controls
- Scenarios → Device items: uses
src/classes/IoTScenario.cpp - Device items → Peripherals: represents
- Scenarios → Persistent files: reads and writes
src/classes/IoTScenario.cpp - MQTT client → Home discovery: uses
src/MqttClient.cpp - Display modules → Device items: presents
- Firmware startup → Time service: initializes
- WebSocket control → Firmware upgrade: supports upgrade