WIFI & BT
1. WIFI & BT Module Introduction
Taking M5-R1 as an example, this board has a WIFI & Bluetooth module.
2. WIFI Connection Test
killall wpa_supplicant
wpa_supplicant -B -i wlan0 -c <(wpa_passphrase "WIFI_NAME" "WIFI_PASSWORD")3. Bluetooth Connection Test
# Enter interactive console
bluetoothctl
power on # Turn on Bluetooth power
agent on # Enable agent
default-agent # Set as default agent
scan on # Scan surrounding devices
# After scanning and finding the device, note the MAC address (e.g., 00:11:22:AA:BB:CC)
pair 00:11:22:AA:BB:CC # Pair device
trust 00:11:22:AA:BB:CC # Trust device (auto-connect)
connect 00:11:22:AA:BB:CC # Manual connect