有人用mwifi吗,结合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
离线