AT instructions set should be reviewd

exerion
Posts: 5
Joined: Sat Aug 12, 2017 9:30 pm

AT instructions set should be reviewd

Postby exerion » Fri Aug 18, 2017 6:45 pm

Hello.

The AT instruction set document should be reviewed and much better documented, focusing on the error messages. For example, documentation shows AT+CIPSTART commands returns "ERROR" or "ALREADY CONNECT", but in fact it returns 5/6 different messages some of them, and sometimes, used for several different non-related errors. Notice here and mixing the final error message with the "status"; for example "ALREADY CONNECT" is not the summary message (that is in fact "ERROR") but to show the kind of problem.

ALREADY CONNECT <= status or whatever you want to call it
ERROR <= summary

But in other cases we can get up to 2 responses for the same not documented, and so on up to 5-6 different messages none of them documented. And sometimes you get the problem description AFTER then "ERROR" string. Similar thing happens with other commands.

It looks trivial but it's not since you can get unexpected responses simply because you don't know they exist. I got some of these just testing one by one the AT commands whilst I was making a library to deal with them. Obviously forced me to increas the sofware complexity to patch these abundant non-regular cases.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: AT instructions set should be reviewd

Postby ESP_Faye » Tue Sep 12, 2017 1:49 pm

Hi,

So sorry for the inconvenience.

Those messages are logs for debugging. Only "OK" and "ERROR" should be used to check if the operation succeeded. Since ESP8266 AT has already been used by so many customers, we will not change the debugging messages. But for the new chipset ESP32, we will remove all unnecessary messages.

Thanks for your interest in ESP8266!

Who is online

Users browsing this forum: No registered users and 1 guest