Replies: 1 comment
-
Hello, use In case of a serial endpoint, a channel is created automatically. You can obtain it by listening on |
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
-
Hello, i am trying to write a little code that will connect via serial and will send some mavlink commands, in the examples i only managed to find how to write once we received something before, since it needs a channel and it seems that in all examples the channel is always took from waiting an event and then using the channel of that event to send back a message, i ll leave a link to an example file to better understand.
https://github.com/bluenviron/gomavlib/blob/main/examples/endpoint-serial/main.go
I want to send an event even without receiving nothing from the serial port, so i guess i have to create a channel, but what i am not understanding is how to use the channel created by the serial connection if it actually creates one, and if not how to properly create a channel. i ll share my draft code.
thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions