Websocket Client on Kinetis

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Websocket Client on Kinetis

3,902 次查看
stevenlutz
Contributor III

I need to make a websocket connection to a server from a K64F (or other K series MCU) to exchange JSON formatted data. I can't find an example of how this is done with FreeRTOS, Lwip, or the KSDK at all. All I can find are Websocket server examples. 
Can someone please advise me of what I should ne looking for or if this is no possible?
I'm also tempted to try mongoose os. 

标记 (3)
0 项奖励
回复
1 回复

3,124 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Steven:

This should be possible but you will probably have to implement the client yourself.

There is no lwIP web socket client example in SDK. Just a server socket implementation in middleware\lwip\src\apps\httpsrv\httpsrv_ws.c.

I have found some client libraries which perhaps could be used as inspiration for lwIP / FreeRTOS implementation:

 

https://github.com/jeremyhahn/cwebsocket

https://github.com/dhbaird/easywsclient

https://github.com/warmcat/libwebsockets

https://github.com/contiki-os/contiki/blob/master/core/net/ipv6/websocket-http-client.c

https://github.com/payden/libwsclient

 

Regards

Daniel

 

0 项奖励
回复