您尚未登录。

楼主 # 2022-06-09 15:33:31

BugActiveDaughter
会员
注册时间: 2017-10-17
已发帖子: 118
积分: 117.5

MWIFI的mesh组网采用websocket与服务器连接

有人用mwifi吗,结合websocket与服务器进行通信

离线

楼主 #1 2022-06-09 15:37:06

BugActiveDaughter
会员
注册时间: 2017-10-17
已发帖子: 118
积分: 117.5

Re: MWIFI的mesh组网采用websocket与服务器连接

esp-mdf\examples\function_demo\mwifi\router组网没问题,esp-mdf\esp-idf\examples\protocols\websocket测试没问题后,把websocket里边几个函数移植到router,在router的void tcp_client_read_task(void *arg)把socket_tcp_client_create屏蔽,增加websocket_app_start,结果连不上服务器,报错如下:



I (9436) [WEBSOCKET, 344]: Root obtains the IP address. It is posted by LwIP stack automatically
I (9446) [WEBSOCKET, 206]: TCP client read task is running
I (9452) WEBSOCKET: Connecting to ws://106.122.194.252.9999...
E (9482) TRANS_TCP: DNS lookup failed err=202 res=0x0
E (9483) TRANSPORT_WS: Error connecting to host 106.122.194.252.9999:80
E (9485) WEBSOCKET_CLIENT: Error transport connect

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn