In the serial monitor,
AT+CWLAP command giving me available networks.
But when I am trying to connect to any of those networks it's giving me error.
-> AT+CWJAP="Redmi note", "1234567890"
->
-> ERROR
In the serial monitor,
AT+CWLAP command giving me available networks.
But when I am trying to connect to any of those networks it's giving me error.
-> AT+CWJAP="Redmi note", "1234567890"
->
-> ERROR
Welcome to the forum
Please post you sketch, using code tags when you do
I am using BareMinimum code.
Void setup() {
}
Void loop() {
}
And the connections are as follows:
Esp 01 Arduino
Tx ----------------------- pin 1
Rx ----------------------- pin 0
CH_PD , VCC--------- 3.3V
RST , GPIO0, GPIO2----------- NO CONNECTION
GND---------------------GND
That sketch has no Serial input or output code so how are you entering commands and seeing the response ?
But AT commands are supposed to be working in the serial monitor, isnt it right?
https://docs.espressif.com/projects/esp-at/en/latest/AT_Command_Set/Wi-Fi_AT_Commands.html#cmd-jap
// If esp-at is required that connect to a AP by protected management frame, the command should be:
AT+CWJAP="abc","0123456789",,,,,,,3
Also, the space character in your SSID may be considered a 'special character' and need an escape.
Try:
AT+CWJAP="Redmi\ note", "1234567890"
Also, try removing the space after the comma:
AT+CWJAP="Redmi\ note","1234567890"
I will repeat for the new user, the words from my favorite robot:
"This will all end in tears. I just know it."
There is a reason that few Arduino users try to use the ESP8266 as a WiFi shield. There are many better solutions, and using AT commands over a serial connection is not reliable.
If you need WiFi, then use an Arduino or Arduino compatible board that already has WiFi. My go-to board for most projects is the Wemos D1 Mini.
You don't say which Arduino board you are using- or what I/O your project needs, but in some cases the ESP8266-01 can replace the Arduino.
"AT" is Ancient Technology developed in the 1970's.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.