Skip to content

Implement event types and add event handlers to serial devices - #3031

Closed
LupusTheCanine wants to merge 1 commit into
ExpressLRS:masterfrom
LupusTheCanine:event-types
Closed

LupusTheCanine wants to merge 1 commit into
ExpressLRS:masterfrom
LupusTheCanine:event-types

Conversation

@LupusTheCanine

Copy link
Copy Markdown
Contributor

Adds event type identifiers
Adds event handler support to serial device handlers.
pulled from #2964 as requested.

This was referenced Nov 11, 2024
@pkendall64

Copy link
Copy Markdown
Collaborator

@LupusTheCanine I actually have a different implementation of this where the devices can actually subscribe to the events that they are interested in and will only be called if that event type is fired, which means that the event function for a device will only be called if the event that has been triggered is subscribed to by the device.

@LupusTheCanine

Copy link
Copy Markdown
Contributor Author

@LupusTheCanine I actually have a different implementation of this where the devices can actually subscribe to the events that they are interested in and will only be called if that event type is fired, which means that the event function for a device will only be called if the event that has been triggered is subscribed to by the device.

Will it support adding event handlers to devSerialIO? I need that so I can update MavlinkSerial SysIDs on the fly. When is it expected?

@pkendall64

Copy link
Copy Markdown
Collaborator

Yes it will allow that. I'm just waiting in Phase 6 to be approved and merged before I do a couple of event based PRs.

@LupusTheCanine

Copy link
Copy Markdown
Contributor Author

Sorry I mixed up devSerialIO with SerialIO. I need to add event handler (to devSerialIO) from within serialIO so it only works when SerialMavlink is the active serial driver.

@pkendall64

Copy link
Copy Markdown
Collaborator

Closing this as we have an eventing framework in place now in the master branch.

@pkendall64 pkendall64 closed this Dec 19, 2024
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.

2 participants