Plugin organization - device w/ 2 interfaces #1676
Unanswered
timbutler-um
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hi Tim, You should be able to place the Protocol in a top level "lib" folder in the plugin and have it work. Try that and let us know how it goes. |
Beta Was this translation helpful? Give feedback.
2 replies
-
This should work with the latest 5.0.5 release. Are you guys on that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a device with 2 serial interfaces that I am controlling with a COSMOS5 plugin. I was looking for some advice on how to organize my plugin.
My take is that each serial interface would be represented by a separate TARGET, with a corresponding INTERFACE defining its specific serial connection details. Following the example of the demo plugin, I would define 2 TARGET folders under the top level targets/ folder. Command and telemetry packets, which are specific to each serial connection, would be defined therein.
However, I had to write a Protocol module to handle some specific details of my serial interface, which is exactly the same for both target connections. Instead of duplicating this module to the lib/ directory of each target, is there some way to share it across targets?
Thanks,
Tim Butler
Beta Was this translation helpful? Give feedback.
All reactions