Close Menu
Circuit of Things
  • Home
  • Projects
    • Raspberry Pi Projects
    • Arduino Projects
    • ESP8266 Projects
    • ESP32 Projects
    • IoT Tutorials
    • Sensors & Modules
    • IoT Basics
  • About Us
  • Get In Touch
  • 3D Print
  • Shop Now !
  • Electro Calc

Stay in the Loop!

Subscribe to get the latest IoT tutorials, Arduino projects, and electronics guides delivered straight to your inbox.

Instagram WhatsApp
  • Terms and Conditions
  • Disclaimer
  • Privacy Policy
Circuit of Things Circuit of Things
  • Home
  • Projects
    • Raspberry Pi Projects
    • Arduino Projects
    • ESP8266 Projects
    • ESP32 Projects
    • IoT Tutorials
    • Sensors & Modules
    • IoT Basics
  • About Us
  • Get In Touch
  • 3D Print
  • Shop Now !
  • Electro Calc
Hire us
Circuit of Things
Home»ESP32 Projects»How to Connect ESP32 to Wi-Fi: Complete Beginner Guide
ESP32 Projects

How to Connect ESP32 to Wi-Fi: Complete Beginner Guide

Sai Preetham KoyyalaBy Sai Preetham KoyyalaMay 4, 2026No Comments1 Min Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Share
Facebook Twitter LinkedIn Pinterest Email
Contents
  • Introduction
  • ESP32 Wi-Fi Modes
  • Project 1: Basic Wi-Fi Connection
  • Project 2: Scan Nearby Networks
  • Troubleshooting Tips
  • Conclusion

Introduction

The ESP32 microcontroller has built-in Wi-Fi, making it the perfect platform for IoT projects. In this guide, we cover every method to connect your ESP32 to Wi-Fi using the Arduino IDE.

ESP32 Wi-Fi Modes

  • Station Mode (STA): ESP32 connects to your router as a client.
  • Access Point Mode (AP): ESP32 creates its own hotspot.
  • STA+AP Mode: Both simultaneously.

Project 1: Basic Wi-Fi Connection

#include <WiFi.h>
const char* ssid = "YOUR_SSID";
const char* password = "YOUR_PASSWORD";
void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); }
  Serial.println("Connected! IP: " + WiFi.localIP().toString());
}
void loop() {
  if (WiFi.status() != WL_CONNECTED) WiFi.reconnect();
  delay(10000);
}

Project 2: Scan Nearby Networks

#include <WiFi.h>
void setup() {
  Serial.begin(115200);
  WiFi.mode(WIFI_STA); WiFi.disconnect(); delay(100);
  int n = WiFi.scanNetworks();
  for (int i = 0; i < n; i++)
    Serial.printf("%d: %s (%d dBm)\n", i+1, WiFi.SSID(i).c_str(), WiFi.RSSI(i));
}
void loop() {}

Troubleshooting Tips

  • ESP32 only supports 2.4GHz networks, not 5GHz.
  • RSSI below -80 dBm means weak signal — move closer to router.
  • Getting 0.0.0.0? Restart your router or reduce DHCP clients.

Conclusion

Wi-Fi connectivity is the foundation of every ESP32 IoT project. Once connected, you can push data to cloud platforms, MQTT brokers, or host web servers directly from the chip!

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticlePowerful Arduino Bluetooth Home Automation (HC-05 & KSP App Guide)
Next Article ESP32 MQTT Tutorial: Publish and Subscribe with HiveMQ
Sai Preetham Koyyala
  • Website
  • Facebook
  • X (Twitter)
  • Instagram
  • LinkedIn

Hello, I am Sai Preetham Koyyala. I'm an electronics engineer by profession, a DIY enthusiast by passion. ESP32 and Arduino are the main topics of my work.

Related Posts

ESP32 Projects

ESP32 Firebase Realtime Database: Send and Receive Data from the Cloud

May 4, 2026
ESP32 Projects

ESP32 OTA Updates: Program Your Board Over Wi-Fi with Arduino IDE

May 4, 2026
ESP32 Projects

ESP32 Bluetooth Tutorial: Wireless Serial Communication with Arduino IDE

May 4, 2026
Add A Comment
Leave A Reply Cancel Reply


KSP Electronics
✓ Trusted Store
Everything for Your
Next IoT Build
Boards, sensors, modules & kits delivered fast across India.
ESP32 Arduino Sensors Modules DIY Kits
500+
Products
Fast
Delivery
★★★★★
Rated
🛒 Shop Now →
kspelectronics.in
💻
● Available for Projects
Hire Me for
IoT Projects
ESP32, LoRaWAN, cloud dashboards & custom hardware — end-to-end IoT solutions for your needs.
ESP32 LoRaWAN MQTT Arduino Cloud PCB Design
3+
Yrs Exp
20+
Projects
★★★★★
Rated
💬 Chat on WhatsApp
View services →
Top Posts

Raspberry Pi: How to Control a DC Motor with L298N and PWN on a Web Server

July 14, 2023

Relay Module with Arduino: Control High Voltage Appliances Safely

May 4, 2026

Esp8266 / NodeMCU Pinout: A Comprehensive Guide for Beginners

June 25, 2023
Follow Us
  • Telegram

Stay in the Loop!

Subscribe to get the latest IoT tutorials, Arduino projects, and electronics guides delivered straight to your inbox.

Most Popular

Raspberry Pi: How to Control a DC Motor with L298N and PWN on a Web Server

July 14, 2023

Relay Module with Arduino: Control High Voltage Appliances Safely

May 4, 2026

Esp8266 / NodeMCU Pinout: A Comprehensive Guide for Beginners

June 25, 2023
Our Picks

Relay Module with Arduino: Control High Voltage Appliances Safely

May 4, 2026

NodeMCU ESP8266 Sensor Data to ThingSpeak IoT Platform

May 4, 2026

ESP32 Firebase Realtime Database: Send and Receive Data from the Cloud

May 4, 2026

Stay in the Loop!

Subscribe to get the latest IoT tutorials, Arduino projects, and electronics guides delivered straight to your inbox.

© 2026 Circuit of Things. All Rights Reserved. Built with ❤️ for the Maker Community.

  • About
  • Privacy
X (Twitter) Instagram YouTube WhatsApp
  • Book an Appointment
  • My Bookings
  • Support Us
© 2026 Circuit of Things. Designed by Sai Preetham Koyyala.

Type above and press Enter to search. Press Esc to cancel.