Files
story/firmware/echoear-platform-agent/main/device_control.h
T

11 lines
451 B
C
Raw Normal View History

#pragma once
#include "esp_err.h"
#include <stdbool.h>
// 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);