ch32v307 ETH有没有websocket方面的例程

物联网应用中,遇到websocket的需求,不知道属于tcp例程方面还是属于http例程,有没有websocket的实现例程

希望协助,谢谢

 您好,我司官网例程中有WebServer相关例程可以参考。
EVT例程链接:/downloads/CH32V307EVT_ZIP.html
image.png


Webclient的 例程吗



Hello,


If someone wants to help me port a websocket library to CH32V307 will be very helpful.


I did find the library:

https://github.com/bsapundzhiev/ucwebsocket/tree/master


For now I did compile in Windows using Embarcadero DEV-C++ :

https://www.embarcadero.com/free-tools/dev-cpp/free-download

to compile and use the following client to test (after connect it send once at second a message

to server.?


You also need the WS2_32.Lib:

https://github.com/fmirus/torcs-1.3.7/blob/master/scr_server/WS2_32.Lib


The problem is that I get some errors when using Midori or Firefox. The library works best with Chrome.

I did start to analize the library to see where the errors occurs.?


But help from someone else to also test the library will

come handy. So after we make the library work well to port it to CH32V307 using the wchnet lib.


If someone want's me to send the project to test, just tell me.

Bogdan


@您好,暂无webClient例程提供参考。


Hello @BNedelcu.

I will try to port websocket when I have time. I will let you know when it is done.

Can you send the results of your current project to the following email address yhr@wch.cn? I will refer to the contents.



Please check my humble implementation of?WEBSOCKETS, JSON, AJAX with CORS, and MODBUS TCP

in the gold CH32V307VCT6 microcontroller.


The AJAX is only light implemented, only sends an answer packet that obeys CORS rules, no received data parsing :D.


Hope someone will find usefulness in this.

愿财富和健康属于你


https://github.com/NedelcuBogdanSebastian/CH32V307JSONMODBUSWEBSOCKETAJAX



https://github.com/NedelcuBogdanSebastian/CH32V307JSONMODBUSWEBSOCKETAJAX


看到stm32有例程,通过websocket.h的形式转换,不过我加入后,怎么调都无法连接,有没有也感兴趣的朋友帮忙测试下


STM32 WebSocket Server

https://pegasus.blog.csdn.net/article/details/119840329


只有登录才能回复,可以选择微信账号登录