Skip to content

How to extract data from an event? #2130

Discussion options

You must be logged in to vote

Your problem is not related to Mongoose nor its events, but on general programming.
The event handler doesn't have to be static, you can have a global if you want, and you can do whatever you want to do with your data; put it in a shared variable, push it to a queue, save it to a file, write to a Un*x pipe, to an RTOS mailbox, whatever. Just keep the manager and the handlers on the same thread.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants