Skip to content

I had a blast with your wsServer library the last few days. #24

@dinther

Description

@dinther

I spend my entire career trying to avoid C so despite decades in IT I only spend a week so far on learning C.

For a project I need to send messages from a browser to a raspberry pi zero w. In turn it drives TMC2209 stepper controllers etc etc.
Your library is indeed a breeze to start with and I have it working nicely receiving binary data.

Now I wonder, is it possible to have an animation loop running while wsServer is doing it's thing?

ws_socket(&evs, 8080);

Hogs the main loop and I can't figure out how I can keep my own code going while we wait for the next message.
Maybe a hook for a callback or a function call so I can push the wsServer loop along manually.
Maybe there is a solution already but after seeing the thread stuff I decided to grease up and see if you have any ideas.

Cheers.

Paul.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions