fix(wifi_remote): Fix server event/command race condtion using eventfd

This commit is contained in:
David Cermak
2024-05-30 20:43:15 +02:00
parent 9e13870ad4
commit 732b1d5084
4 changed files with 146 additions and 24 deletions

View File

@ -129,6 +129,15 @@ public:
return ESP_OK;
}
int get_socket_fd()
{
int sock;
if (esp_tls_get_conn_sockfd(tls_, &sock) != ESP_OK) {
return -1;
}
return sock;
}
RpcHeader get_header()
{
RpcHeader header{};