esp8266 can connect to server only once evry time

mikewang
Posts: 8
Joined: Sat Oct 25, 2014 10:20 am

esp8266 can connect to server only once evry time

Postby mikewang » Fri Apr 10, 2015 4:43 pm

as mentioned in subject , after powered on , the soc can connect to the server and post related command with response recieved from server by http, and then the server diconnect the tcp connection. as all u know , soc goona run to disconnect_callback and call reconnect so that the soc can connect to the server again.
here is the problem, once the server disconnect connection, soc run to “user_esp_platform_connect” as shown in the log below and then blocks here or just restarts
i just can not figure out the reason, so the problem is just brought up here ,i am really long for your response.
thanks

the last part of log information from serial:
user_esp_platform_reconnect
user_esp_platform_dns_found 114.80.0.226
user_esp_platform_connect


sometimes i becomes fatal exception:
user_esp_platform_reconnect
user_esp_platform_dns_found 114.80.0.226
user_esp_platform_connect
Fatal exception (9):
epc1=0x401006d4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00e0f7ae, depc=0x00000000
Fatal exception (9):
epc1=0x401006d4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00e0f7ae, depc=0x00000000
Fatal exception (9):
epc1=0x4010058e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00e0f7b2, depc=0x00000000
Fatal exception (9):
epc1=0x4010058e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00e0f7b2, depc=0x00000000
Fatal exception (9):
epc1=0x4010058e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00e0f7b2, depc=0x00000000

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

Re: esp8266 can connect to server only once evry time

Postby ESP_Faye » Sun Apr 12, 2015 5:48 pm

Hi,

Could you offer us the test code to replicate your problem?

mikewang
Posts: 8
Joined: Sat Oct 25, 2014 10:20 am

Re: esp8266 can connect to server only once evry time

Postby mikewang » Thu Apr 30, 2015 1:08 pm

Espressif_Faye wrote:Hi,

Could you offer us the test code to replicate your problem?


thanks for ur replay ,finally it is the bug of my own code,really sorry

Who is online

Users browsing this forum: No registered users and 146 guests