Skip to content

Add new JSON based interception API#2638

Merged
julianoes merged 9 commits intomainfrom
pr-raw-connection
Aug 19, 2025
Merged

Add new JSON based interception API#2638
julianoes merged 9 commits intomainfrom
pr-raw-connection

Conversation

@julianoes
Copy link
Copy Markdown
Collaborator

This adds a new interception API based on the libmav JSON integration (see #2610), avoiding the MAVLink C header depend dependency. The JSON based API will replace the previous one by the next major release.

Currently on top of #2637.

@julianoes julianoes force-pushed the pr-forward-unknown-messages branch 2 times, most recently from e7ba310 to 4de47b5 Compare August 4, 2025 04:54
Base automatically changed from pr-forward-unknown-messages to main August 14, 2025 00:13
It's enough to have duplication between mavsdk.h and mavlink_direct.h
which is currently unavoidable because mavlink_direct is
auto-generated, but we really shouldn't have it inside of mavsdk as
well.
@sonarqubecloud
Copy link
Copy Markdown

@julianoes julianoes merged commit 9f7bbc8 into main Aug 19, 2025
56 checks passed
@julianoes julianoes deleted the pr-raw-connection branch August 19, 2025 02:45
julianoes added a commit that referenced this pull request Jan 6, 2026
This restores the original behavior where the intercept callback is
called before message forwarding, allowing users to modify or drop
messages before they are forwarded to other connections.

With this fix:
- Modifications in intercept callback affect forwarded messages
- Dropping a message (returning false) prevents forwarding

The behavior had been changed by accident in:
#2638
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

Successfully merging this pull request may close these issues.

1 participant