Handling of espconn disconnect changed so it is handled the way Espressif advised me on a different project.
Some cleanup that should not change behavior.
Pointers to espconn structures are irrelevant with Espressif's implementation. Only remote IP/port positively identifies a socket connection. The debugging information should reflect that. Added slot information so the IP/port does not need to be repeated.
Please let me know what you think. I've tested these changes in my environment and they work fine.
Patch description:
Please let me know what you think. I've tested these changes in my environment and they work fine.