Connect to wifi access point using Tello Edu as a slave unit [python]

1 Start Tello and connect your PC to Tello

At this stage, it is Tello (master unit) and PC (slave unit).

2 Run the program and connect Tello to wifi

tello_wifi_access.py



import socket

tello_ip = '192.168.10.1'
tello_port = 8889

socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
tello_address = (tello_ip , tello_port)

socket.sendto('command'.encode('utf-8'),tello_address)
socket.sendto('ap SSID PASSWORD'.encode('utf-8'),tello_address)


Change the SSID and PASSWORD to those of the wifi to connect to.

Then Tello goes into slave mode and connects to the SSID wifi. Once set, the settings will be saved and will automatically connect to wifi the next time Tello starts.

Recommended Posts

Connect to wifi access point using Tello Edu as a slave unit [python]
I tried to create a sample to access Salesforce using Python and Bottle
How to unit test a function containing the current time using freezegun in python
How to set up a Python environment using pyenv
(Python) Try to develop a web application using Django
How to make a Python package using VS Code
Write code to Unit Test a Python web app
How to execute a command using subprocess in Python
I tried to access Google Spread Sheets using Python
Connect python to mysql
How to transpose a 2D array using only python [Note]
To return char * in a callback function using ctypes in Python
Connect to the Bitcoin network using pycoin (Python Cryptocoin Utili)
I tried to make a stopwatch using tkinter in python
How to upload a file to Cloud Storage using Python [Make a fixed point camera with Raspberry PI # 1]
[Python] How to scrape a local html file and output it as CSV using Beautiful Soup