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

13 lines
481 B
C
Raw Normal View History

#pragma once
#include <stdint.h>
#include "esp_err.h"
#include "cJSON.h"
// Only request() runs on the touch task. State/NVS and network work belong to
// the control worker; the physical wake survives a reboot or lost HTTP reply.
esp_err_t device_screen_wake_init(void);
void device_screen_wake_request(void);
esp_err_t device_screen_wake_poll(int64_t applied_revision);
void device_screen_wake_add_report(cJSON *report);
esp_err_t device_screen_wake_ack(const cJSON *response);