#pragma once #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif // Initializes the websocket client and starts the connection process void socket_client_init(void); // Triggers an immediate WebSocket telemetry report push void trigger_telemetry_broadcast(void); // OTA progress/result messages (called from ota_manager.c) void socket_send_ota_progress(int percent, int bytes_written, int bytes_total); void socket_send_ota_complete(void); void socket_send_ota_error(const char *reason); #ifdef __cplusplus } #endif