#pragma once #include "esp_err.h" #include // Starts after network and factory identity initialization. Uses a PSRAM stack. esp_err_t device_control_start(void); void device_control_heartbeat(void); // Call from an application task, never from the MQTT event handler. void device_control_prepare_restart(void); // The touch task queues a wake; the control worker restores power and syncs it. bool device_control_request_screen_wake(void);