cancel
Showing results for 
Search instead for 
Did you mean: 

Implement WebSocket Protocol on STM32?

AS5
Associate II

Hello,

I am currently working on a project with an HTTP server, successfully implemented using FreeRTOS. In this setup, I handle client requests for opening and collecting data from the client side. However, since I need to display real-time data on a web page (for an IoT application), it has become necessary to implement the WebSocket protocol.

I am looking to implement a WebSocket server on my STM32f746G-DISCO. Unfortunately, I have not been able to find any working examples of WebSocket implementation on STM32.

Could you kindly point me in the direction of any relevant examples or provide some guidance on how to get started with this? Also, I would appreciate any insights regarding whether I need to modify my CubeMX configuration when implementing WebSocket, or if the standard initialization is sufficient — enabling ETH, activating lwIP (httpd) without DHCP, and activating FreeRTOS with the default task where the following initialization is done:

MX_LWIP_Init();
http_server_init();

Any help would be greatly appreciated.

Thank you in advance!

Best regards,

@AS5 

11 REPLIES 11

WebSockets is in production on many items and working fine.

We already moved to a new generation of network solutions with better reliability and flexibility, also this solution includes WebSockets server.

Only drawback, we never used F7 - all our customers are H7 focused, some are looking to H5 but not yet ready for that.

Waht kind of help are you looking for?

Mike

I am working on this project where I have to access real time updates
between STM32 (Nucleo-144 F767ZI) as websocket server and ESP32 (Wroom
Devkit V1) as webocket client. I am using Arduino IDE not CubeIDE. I have
installed various libraries and have done some coding as well but the
connection is not being established. Every time I solve one error new one
pops out of nowhere.

Any done examples or reference would be helpful.