Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onSend function #592

Open
michaelachrisco opened this issue Jun 9, 2024 · 1 comment
Open

onSend function #592

michaelachrisco opened this issue Jun 9, 2024 · 1 comment

Comments

@michaelachrisco
Copy link

In the examples here: https://meshtastic.org/docs/development/python/library/

We have a method we can subscribe to called onReceive. Is there a way to hook into something similar like onSend? Like anytime the device sends out a package, we can subscribe/see what that packet is?

I see something like this in the source code here: https://github.com/meshtastic/python/blob/master/meshtastic/__main__.py#L430

@ianmcorvidae
Copy link
Contributor

I'm not sure if this is possible for truly every message the device sends out, since I don't think everything the device sends out automatically is copied to the client API that we're using. I do think it could be good to add a hook around anything sent by the library itself, so I'll think a little about the best way to set that up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants