cancel
Showing results for 
Search instead for 
Did you mean: 

Webserver using AT Command

dnk
Associate

I'm having trouble using STM32 to bind to the Webserver via the AT Command command. Connecting to the Webserver is fine, but the problem is that the site only runs a few times, the AT+CIPSEND command has a problem, data sent to ESP is 1 character error causing the data response process to be ERROR. Everyone shows me how to fix it.

dnk_0-1703649881431.pngdnk_1-1703649907381.pngdnk_2-1703649927893.pngdnk_3-1703650046820.png

This is the problem that I encountered, the webserver run a few times, the AT+CIPSEND sending process is faulty at the letter E. I don't know what the fault is

3 REPLIES 3
Techn
Senior III

You are allocating 80bytes for data, Check if the strlen(str) + AT+CIPSEND, \r\n exceed this limit, at the beginning of the function check this and if not, take appropriate action

If you feel a post has answered your question, please click "Accept as Solution".
Andrew Neil
Evangelist III

@dnk wrote:

I'm having trouble using STM32 


before using the STM32, have you verified that you can do it manually - using a terminal?

 

Techn
Senior III

This is what I got from the reference manual. Are you using ESP8266

<quoted from the AT_cmd for ESP 8266>

20ms interval between each packet, maximum 2048 bytes per packet. When
single packet containing "+++" is received, it returns to normal command
mode. Please wait at least 1 second before sending next AT command

For network traffic, do not expect that you will be successful always, so check for other conditions and take appropriate action..

<quoted>

If connection cannot be established or gets disconnected during send,
returns
ERROR
If data is transmitted successfully, returns
SEND OK

 

If you feel a post has answered your question, please click "Accept as Solution".