esp-kos-bridge with wss + async
Posted: Sat Feb 11, 2023 10:35 am
hola all.
got problems with sending async data trough websocket.
program can be found here:
https://github.com/m5it/esp-kos-bridge/tree/v0.4b1
problem is that after 1min or so send fail.
example output is here:
[0;32mI (233143) T3CH_HTTPD: trigger_async_task() STARTING id/hash: cbea68d7, action: ping, uid: PING
[0m
[0;32mI (233156) T3CH_HTTPD: trigger_async_task() DEBUG id: cbea68d7, wuai: 0
[0m
async_task() STARTING id: cbea68d7, action: ping, uid: PING
async_task() new task_id: 84
async_task() DONE action: ping, uid: PING
ws_task_ping() STARTING with task_id: 84
ws_task_infoLoop() running, tmphd: 1073588904, tmpfd: 58
ws_task_ping() D2 hash: cbea68d7, uid: PING, action: ping
ws_task_ping() DEBUG wuai: 0
t3ch_ws_async_send() STARTING, fd: 58
t3ch_ws_async_send() STARTING, fd: 58
[0;31mE (233201) esp-tls-mbedtls: write error :-0x6C00:[0m
[0;33mW (233203) httpd_ws: httpd_ws_send_frame_async: Failed to send WS header[0m
[0;31mE (233216) T3CH_HTTPD: t3ch_ws_async_send() failed with ffffffff[0m
ws_task_ping() send failed err: ffffffff, cnt: 0/5.
ws_task_ping() DEBUG wuai: 0
t3ch_ws_async_send() STARTING, fd: 58
if you have any tip i will be glad ! thanks*
got problems with sending async data trough websocket.
program can be found here:
https://github.com/m5it/esp-kos-bridge/tree/v0.4b1
problem is that after 1min or so send fail.
example output is here:
[0;32mI (233143) T3CH_HTTPD: trigger_async_task() STARTING id/hash: cbea68d7, action: ping, uid: PING
[0m
[0;32mI (233156) T3CH_HTTPD: trigger_async_task() DEBUG id: cbea68d7, wuai: 0
[0m
async_task() STARTING id: cbea68d7, action: ping, uid: PING
async_task() new task_id: 84
async_task() DONE action: ping, uid: PING
ws_task_ping() STARTING with task_id: 84
ws_task_infoLoop() running, tmphd: 1073588904, tmpfd: 58
ws_task_ping() D2 hash: cbea68d7, uid: PING, action: ping
ws_task_ping() DEBUG wuai: 0
t3ch_ws_async_send() STARTING, fd: 58
t3ch_ws_async_send() STARTING, fd: 58
[0;31mE (233201) esp-tls-mbedtls: write error :-0x6C00:[0m
[0;33mW (233203) httpd_ws: httpd_ws_send_frame_async: Failed to send WS header[0m
[0;31mE (233216) T3CH_HTTPD: t3ch_ws_async_send() failed with ffffffff[0m
ws_task_ping() send failed err: ffffffff, cnt: 0/5.
ws_task_ping() DEBUG wuai: 0
t3ch_ws_async_send() STARTING, fd: 58
if you have any tip i will be glad ! thanks*