Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By johnboy36
#44685 Hi all, thanks for all the help so far, I've been reading this forum for a while but this is my first post. I haven't been able to find much info on this issue here or anywhere else.

I have my sketch up and running. When it's connected through my home ASDL is works pretty well, however, when I use a mobile broadband router (Huawei mi-fi thing) it fails about 95% of the time. So I switched on debugging to see what's going on, but I can't find any information to interpret the debugging messages. Here's what I get when the connection works

[hostByName] request IP for: myhost.com
[hostByName] Host: myhost.com IP: xxx.xxx.xxx.xxx
:ref 1
:wr
:sent 87
:rn 206
:ww
:c0 1, 206
:rcl
:abort
:ur 1
:del
x61

And this is a failed connection

[hostByName] request IP for: myhost.com
[hostByName] Host: myhost.com IP: xxx.xxx.xxx.xxx
:ref 1
:wr
:sent 87
:ww
:ur 1
:close
:del

Does anyone know what these messages mean? Can I enable more detail? Is there a document? I have other scenarios where it fails or resets and i'd like to debug those too.

Cheers!
User avatar
By Phil colbert
#46857 Search through the arduino code for the various debug messages :-

If your on windows search here :- C:\Users\{username}\AppData\Local\Arduino15\packages\esp8266

For example, the first message

:ref 1

comes out of the file

hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src\include\ClientContext.h
line 89
DEBUGV(":ref %d\r\n", _refcnt);

From there you can see whats going on , does that make sense?