skaarj1989 / mWebSockets

WebSockets for microcontrollers
https://skaarj1989.github.io/mWebSockets/autobahn-testsuite/servers/
MIT License
108 stars 23 forks source link

Simplify examples how to use callbacks #32

Closed stevstrong closed 3 years ago

stevstrong commented 3 years ago

Hi, thanks a lot for this awesome lib. I would like to suggest to simplify the usage of callbacks in the examples to be more readable (for novices like me :)). I have written an example here in which the callback function construction is separated in 3 parts, and one liner initialization in setup. I thought you (or someone else) maybe find it useful. If you do not think that makes sense, just close this issue.

skaarj1989 commented 3 years ago

Hi @stevstrong

I think that I could create wiki page dedicated to usage of this library (with code snippets).