new client connection logic

- esp32 requests for image when ready to receive
- server serves initial image on request
This commit is contained in:
2026-02-16 21:56:28 +09:00
parent 5c16e6deb7
commit 5ae0c64ba9
4 changed files with 39 additions and 11 deletions

View File

@@ -40,11 +40,17 @@ void audio_client_set_image_notify_task(TaskHandle_t task);
/**
* Get the latest status image descriptor.
* @param updated Set to true if a new image arrived since last call, then reset.
* @param updated Set to true if a new image arrived since last call.
* @return Pointer to the static image descriptor (always valid).
*/
const lv_img_dsc_t *audio_client_get_status_image(bool *updated);
/**
* Acknowledge that the status image was successfully rendered.
* Clears the updated flag so subsequent get_status_image calls return false.
*/
void audio_client_ack_status_image(void);
#ifdef __cplusplus
}
#endif