Skip to content

Why can't my python code connect to Mavsdk_server with IP added? #659

Open
@boom6314

Description

@boom6314

When I open two Mavsdk_servers, one with IP and one without IP, they can connect to each other. However, when I use python code to connect to the Mavsdk_server with IP, there is no response.

Screenshot from 2024-02-27 17-24-29
Screenshot from 2024-02-27 17-24-38

 import asyncio
 from mavsdk import System 

 async def run():
     drone = System(mavsdk_server_address="localhost", port=50051)
     print("123")
     await drone.connect()
     print("456")
    
   
 if __name__ == "__main__":
     asyncio.run(run())

I think I'm stuck at drone.connect because I only see 123

I wonder what kind of problem this is and how to solve it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions