物聯(lián)網(wǎng)應(yīng)用中,遇到websocket的需求,不知道屬于tcp例程方面還是屬于http例程,有沒(méi)有websocket的實(shí)現(xiàn)例程
希望協(xié)助,謝謝
物聯(lián)網(wǎng)應(yīng)用中,遇到websocket的需求,不知道屬于tcp例程方面還是屬于http例程,有沒(méi)有websocket的實(shí)現(xiàn)例程
希望協(xié)助,謝謝
?您好,我司官網(wǎng)例程中有WebServer相關(guān)例程可以參考。
EVT例程鏈接:http://m.findthetime.net/downloads/CH32V307EVT_ZIP.html
有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
@!您好,暫無(wú)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.
愿財(cái)富和健康屬于你
https://github.com/NedelcuBogdanSebastian/CH32V307JSONMODBUSWEBSOCKETAJAX
https://github.com/NedelcuBogdanSebastian/CH32V307JSONMODBUSWEBSOCKETAJAX
看到stm32有例程,通過(guò)websocket.h的形式轉(zhuǎn)換,不過(guò)我加入后,怎么調(diào)都無(wú)法連接,有沒(méi)有也感興趣的朋友幫忙測(cè)試下
STM32 WebSocket Server
https://pegasus.blog.csdn.net/article/details/119840329