Very poor name: espconn_regist_reconcb function

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

Very poor name: espconn_regist_reconcb function

Postby kolban » Sat Sep 05, 2015 11:43 pm

While studying the SDK APIs, I was examining espconn_regist_reconcb(). As I studied it in depth, I seem to find that its purpose is to register a callback when an error in the TCP/IP calls or results is detected. As such, this appears to be nothing to do with "reconnect" but rather with error handling. I'd like to suggest that the name of this function be changed. A potential candidate might be:

espconn_regist_errorcb()

which would register a callback to be called when an error has been detected.

eriksl
Posts: 159
Joined: Fri May 22, 2015 6:22 pm

Re: Very poor name: espconn_regist_reconcb function

Postby eriksl » Sun Sep 13, 2015 6:04 pm

+1

Who is online

Users browsing this forum: No registered users and 5 guests