Maker Pro
Arduino

Configure WiFi via Bluetooth

August 24, 2020 by Michael Zhang
Share
banner

Use RTL8722 to config wifi via Bluetooth.

Hardware

Software

0 Realtek WiFi configuration app
WIFIBT5-7.png
WIFIBT5-3.png

Use RTL8722 to config wifi via Bluetooth

Introduction

In this example, a WiFi configuration service is set up on the Ameba Bluetooth stack. A mobile phone with the configuration app connects to the Ameba device using BLE and configures the Ameba to connect to the correct WiFi access point.

Procedure

Ensure that the Realtek WiFi configuration app is installed on your mobile phone, it is available at:

Open the example, "Files" -> "Examples" -> “AmebaBLE” -> “BLEWifiConfigService”.

WIFIBT5-1.png

Upload the code and press the reset button on Ameba once the upload is finished.

On your mobile phone, open the Realtek WiFiConfig app and tap the round button to scan for Ameba boards.

WIFIBT5-2.png

Select the correct Ameba board from the scan results. The app will connect to the Ameba board and ask the board to scan for WiFi networks and send the scan results back to the app using BLE.

WIFIBT5-3.png
WIFIBT5-4.png
WIFIBT5-5.png

If your phone is currently connected to a WiFi network, the app will ask for the WiFi password to connect the Ameba board to the same WiFi network. Tap “Select AP” to choose another WiFi network, or enter the password and tap continue to connect Ameba to the selected WiFi network.

WIFIBT5-6.png

After the Ameba board connects to the WiFi network, the following message will be shown. Tap “Try another AP” to connect to another WiFi network or tap “Confirm” to keep the current WiFi network and disconnect BLE from the Ameba board.

WIFIBT5-7.png

Related Content

Comments


You May Also Like