WIFI & BT
1. WIFI & BT Module Overview
Taking M5-R1 as an example, the board comes with a Wi-Fi & Bluetooth module.
2. Wi-Fi Connection Test
killall wpa_supplicant
wpa_supplicant -B -i wlan0 -c <(wpa_passphrase "WIFI名称" "WIFI密码")3. Bluetooth Connection Test
# Enter the interactive console
bluetoothctl
power on # Turn on Bluetooth power
agent on # Enable the agent
default-agent # Set as the default agent
scan on # Scan for nearby devices
# After a device is scanned, note its MAC address (e.g. 00:11:22:AA:BB:CC)
pair 00:11:22:AA:BB:CC # Pair the device
trust 00:11:22:AA:BB:CC # Trust the device (auto-connect)
connect 00:11:22:AA:BB:CC # Connect manually