mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-20 15:03:44 +02:00
- Changed configuration macros from CONFIG_GENERAL_DEFAULT_WIRED_MODE to CONFIG_GENERAL_INCLUDE_UVC_MODE across multiple files. - Introduced new command for retrieving LED current in CommandManager. - Added MonitoringManager and CurrentMonitor classes to handle LED current monitoring. - Updated Kconfig to include options for LED current monitoring. - Modified main application logic to integrate MonitoringManager and handle new device modes. - Adjusted CMakeLists and source files to include new monitoring components.
28 lines
1003 B
C++
28 lines
1003 B
C++
#include "CommandResult.hpp"
|
|
#include "ProjectConfig.hpp"
|
|
#include "OpenIrisTasks.hpp"
|
|
#include "DependencyRegistry.hpp"
|
|
#include "esp_timer.h"
|
|
#include "cJSON.h"
|
|
#include "main_globals.hpp"
|
|
|
|
#include <format>
|
|
#include <string>
|
|
|
|
CommandResult updateOTACredentialsCommand(std::shared_ptr<DependencyRegistry> registry, std::string_view jsonPayload);
|
|
|
|
CommandResult updateLEDDutyCycleCommand(std::shared_ptr<DependencyRegistry> registry, std::string_view jsonPayload);
|
|
CommandResult getLEDDutyCycleCommand(std::shared_ptr<DependencyRegistry> registry);
|
|
|
|
CommandResult restartDeviceCommand();
|
|
|
|
CommandResult startStreamingCommand();
|
|
|
|
CommandResult switchModeCommand(std::shared_ptr<DependencyRegistry> registry, std::string_view jsonPayload);
|
|
|
|
CommandResult getDeviceModeCommand(std::shared_ptr<DependencyRegistry> registry);
|
|
|
|
CommandResult getSerialNumberCommand(std::shared_ptr<DependencyRegistry> registry);
|
|
|
|
// Monitoring
|
|
CommandResult getLEDCurrentCommand(std::shared_ptr<DependencyRegistry> registry); |