1. Introduction
1.1. Overview
The ESP32, as a single 2.4 GHz Wi-Fi and Bluetooth combo chip, supports Wi-Fi setups
via both SmartConfig and Bluetooth. Users can use ESP32 for secure configuration of WiFi networking for IoT devices.
Using Bluetooth for configuring Wi-Fi network presents the following advantages:
•
The Bluetooth protocol is open and scalable.
•
By using Bluetooth protocol, users can easily discover nearby devices via Bluetooth
beacons.
• The Bluetooth protocol is secure, because the authentication of the device is done
over a secure Bluetooth connection before the password is sent to the device.
• Users can also transmit data over Bluetooth to a smartphone, even when the router
is not working. The phone can then uploads the data to the Internet.
•
The phone can now also connect to the Bluetooth device and send commands
directly to control the device if the Wi-Fi network is down.
1.2. EspBlufi
ESP32 is compliant with Bluetooth v4.2 BR/EDR and BLE specifications. Espressif has
developed the app EspBlufi specifically for Bluetooth networking of IoT devices. The app is
supported on Android 4.3 and above. For smartphones of Android 6.0 or above, because
of Google’s modification to the Android API, users must give their permission for access to
their current location and enable the location information module to start the Bluetooth
scanning.
•
EspBlufi can be downloaded via: https://github.com/EspressifApp/EspRelease/tree/
master/EspBlufi
• Open EspBlufi after downloading it. In the user interface as shown in Figure 1-1, click on
the ! icon in the upper right corner.
!
Figure 1-1. EspBlufi User Interface