How to use the djitellopy.swarm.TelloSwarm.fromIps function in djitellopy

To help you get started, we’ve selected a few djitellopy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github damiafuentes / DJITelloPy / djitellopy / swarm.py View on Github external
def fromFile(path: str):
		"""Create TelloSwarm from file. The file should contain one IP address per line.

		Arguments:
			path: path to the file
		"""
		with open(path, "r") as fd:
			ips = fd.readlines()

		return TelloSwarm.fromIps(ips)