EasyManuals Logo

Freenove ESP32-S3 User Manual

Default Icon
142 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #71 background imageLoading...
Page #71 background image
Any concerns? support@freenove.com
69
Chapter 5 WiFi Working Modes
www.freenove.com
When ESP32-S3 WROOM successfully connects to ssid_Router, serial monitor will print out the IP address
assigned to ESP32-S3 WROOM by the router.
The following is the program code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <WiFi.h>
const char *ssid_Router = "********"; //Enter the router name
const char *password_Router = "********"; //Enter the router password
void setup(){
Serial.begin(115200);
delay(2000);
Serial.println("Setup start");
WiFi.begin(ssid_Router, password_Router);
Serial.println(String("Connecting to ")+ssid_Router);
while (WiFi.status() != WL_CONNECTED){
delay(500);
Serial.print(".");
}
Serial.println("\nConnected, IP address: ");
Serial.println(WiFi.localIP());
Serial.println("Setup End");
}
void loop() {
}
Include the WiFi Library header file of ESP32-S3.
1
#include <WiFi.h>
Enter correct router name and password.
3
4
const char *ssid_Router = "********"; //Enter the router name
const char *password_Router = "********"; //Enter the router password
Set ESP32-S3 in Station mode and connect it to your router.
10
WiFi.begin(ssid_Router, password_Router);
Check whether ESP32-S3 has connected to router successfully every 0.5s.
12
13
14
15
while (WiFi.status() != WL_CONNECTED){
delay(500);
Serial.print(".");
}
Serial monitor prints out the IP address assigned to ESP32-S3 WROOM
17
Serial.println(WiFi.localIP());
Reference
Class Station
Every time when using WiFi, you need to include header file "WiFi.h.".
begin(ssid, password,channel, bssid, connect): ESP32-S3 is used as Station to connect hotspot.
ssid: WiFi hotspot name

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Freenove ESP32-S3 and is the answer not in the manual?

Freenove ESP32-S3 Specifications

General IconGeneral
BrandFreenove
ModelESP32-S3
CategoryControl Unit
LanguageEnglish