ESP32 AT command

giants
Posts: 3
Joined: Wed Apr 21, 2021 6:24 pm

ESP32 AT command

Postby giants » Mon May 17, 2021 11:48 am

Hello!
i start to work with ESP32 and AT command , right now the module is connet to the serial port of my pc, next step i connet him with STM32 board. what i wanna do is check all wifi connection around to me send this information on website afther i make my choice send to the ESP32 username and password . I did this step;
- AT\r\n and i recive ok
- AT+CWMODE=3\r\n and i recive OK i configurate in AP an STA
-AT+CWLAP\r\n return all wifi around me
- AT+CIFSR\r\n and return my IP address 1920168.4.1
If i try to connect with external device like my cellphone i can see +STA_CONNECTED:"here i receive my mac address"<CR><LF>
-AT+CIPMUX=1\r\n and i reciìeive OK
-AT+CIPSERER=1,80\r\n and i recive ERROR
and i don't understand why o mabye i think is because right now i'n not connect with router is this right ?because right now the ESP is just AP and my website address is 192.168.4.1.
i don't know how create socket with AT command. I want work with TCP protocol

I hope some one can help me

Thank you
Sergio

giants
Posts: 3
Joined: Wed Apr 21, 2021 6:24 pm

Re: ESP32 AT command

Postby giants » Tue May 18, 2021 7:17 pm

Find the error. I wrote AP+CIPSERVER=1,80 then AT+CIPSERVER=1,80

Thanks

Sergio

Who is online

Users browsing this forum: Baidu [Spider], leschge and 108 guests