Skip to main content

Drone WiFi in Client Mode

1 minute, 4 seconds

sudo nano /etc/network/interfacesChange the wlan0 ip address to dhcp or static and the address of your choosingSave the file with “control o” then exit with “control x”
sudo nano /etc/wpa_supplicant.confenter the following with your SSID and password of the network you are connecting tonetwork={ ssid="SSID_NAME" psk="PASSWORD"}Save the file with “control o” then exit with “control x”
sudo nano /etc/rc.localChange /opt/teal/sbin/config-based-wifi-teal.shto # /opt/teal/sbin/config-based-wifi-teal.shSave the file with “control o” then exit with “control x”
Create a file with this commandsudo nano /opt/teal/sbin/tealwifiwpasupp.shEnter the following#!/bin/bash
wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0
Save the file with “control o” then exit with “control x”
Create a file with the following command sudo nano /etc/systemd/system/tealwpasupp.serviceEnter the following[Unit]Description=WPA based wifi setupAfter=syslog.target local-fs.target remote-fs.target
[Service]Type=oneshotExecStartPre=/bin/sleep 30ExecStart=/opt/teal/sbin/tealwifiwpasupp.sh#TimeoutSec=20s#WatchdogSec=10s#Restart=always#StartLimitInterval=5min#StartLimitBurst=4#StartLimitAction=none
[Install]WantedBy=multi-user.target
Save the file with “control o” then exit with “control x”
Enable it with the followingsudo systemctl enable /etc/systemd/system/tealwpasupp.service


Reboot the drone with sudo reboot and the wifi should connect on boot

Was this article helpful?