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

recv_match() error over UDP connection #882

Open
jordancormack opened this issue Dec 2, 2023 · 0 comments
Open

recv_match() error over UDP connection #882

jordancormack opened this issue Dec 2, 2023 · 0 comments

Comments

@jordancormack
Copy link

I've been using pymavlink to successfully send and receive mavlink messages using a serial connection, and I am trying to move to UDP.

When I try to receive a message using msg = master.recv_match() I get the following error:

"data, new_addr = self.port.recvfrom(UDP_MAX_PACKET_LEN)
OSError: [WinError 10022] An invalid argument was supplied"

However, if I send a message immediately before (e.g. master.mav.heartbeat_send(...) I don't get an error, and a burst of messages are successfully received, before a pause, and another burst of messages.

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

1 participant