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 · 2 comments
Open

recv_match() error over UDP connection #882

jordancormack opened this issue Dec 2, 2023 · 2 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.

@DevankGarg
Copy link

hi, did u figure out this ?

@musluogluu
Copy link

I need help for this topic immediately. What do you mean by "I send a message immediately before (e.g. master.mav.heartbeat_send(...)" Can anyone help ???

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

3 participants