Stop Hardcoding WiFi Credentials to ESP32 | How to Use Bluetooth for WiFi in ESP32 with Arduino

Опубликовано: 27 Февраль 2026
на канале: IoT Bhai
422
7

Learn how to connect your ESP32 to WiFi dynamically using Bluetooth Serial! In this tutorial, we solve the problem of hardcoding the SSID and Password into your code. Instead, we use a mobile app to send WiFi credentials to the ESP32 via Bluetooth, save them in EEPROM, and connect automatically.

This method is perfect for finished IoT products where you need to change WiFi networks without re-uploading code.

*App Used:*
Serial Bluetooth Terminal (Android/iOS)

** Key Features Covered **
Bluetooth Serial Communication on ESP32
Storing WiFi Credentials in EEPROM
Connecting to MQTT (Brief overview)
Fixing "Sketch too big" error with Partition Schemes

** Timestamps **
00:00 - Why you should stop hardcoding WiFi
00:30 - How Bluetooth & EEPROM work together
01:27 - ESP32 Code Logic & Flow explained
03:22 - Important: Select "Huge APP" Partition Scheme
04:15 - Uploading code & Serial Monitor status
04:50 - Setting up the Bluetooth Mobile App
05:17 - Pairing & sending WiFi Password wirelessly
06:05 - Successful Connection & Data Publishing

** Hardware Used **
ESP32 Development Board
Micro USB Cable

Code Link - https://github.com/ittipu/IoT_lab_You...

** Related Topics **
ESP32 WiFi Provisioning, Arduino IDE Tutorial, IoT functionality, ESP32 EEPROM tutorial, Bluetooth Classic ESP32.

#ESP32 #ArduinoIDE #IoT #TechTutorial #BanglaTutorial #Electronics