So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Vincent_Vbs
#85961 Hello,
In my device, I have sometime trouble to establish connection with the router. I have a loop running with reconnect callback and the -11 error :
Code: Select allconnected with SFR_2150, channel 1
dhcp client start...
ip:192.168.1.72,mask:255.255.255.0,gw:192.168.1.1
user_esp_platform_sntp_check_stamp, (user_esp_platform.c, #2285) : sntp current timestamp: 1583468945
user_esp_platform_sntp_check_stamp, (user_esp_platform.c, #2286) : sntp real time: Fri Mar 06 04:29:05 2020

user_esp_platform_dns_found, (user_esp_platform.c, #2181) : user_esp_platform_dns_found 3.122.79.61
user_esp_platform_connect, (user_esp_platform.c, #2144) : user_esp_platform_connect
user_esp_platform_connect, (user_esp_platform.c, #2145) : free heap 23944
pm open,type:2 0
user_esp_platform_recon_cb, (user_esp_platform.c, #2062) : user_esp_platform_recon_cb err -11
user_esp_platform_reconnect, (user_esp_platform.c, #867) : user_esp_platform_reconnect
state: 5 -> 0 (0)
rm 0
pm close 7
scandone
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt

connected with SFR_2150, channel 1
dhcp client start...
ip:192.168.1.72,mask:255.255.255.0,gw:192.168.1.1

Could you help me concerning the meaning and cause of error -11 ? It can disappear for a period of time and come back. No source code revision relevant, I always saw it but feel it is maybe more frequent (or I am less tolerant).
I try different router, different hardware.
Could it be due to noisy environment ?

Thanks to everybody
User avatar
By Ape21
#85984 It seems the main problem is in the reconnecting part. If it is connected in the first place and then disconnected. Reconnecting can be due to the system as well because it was in the code then it would not have connected at all.