'websocket_demo' from the ESP8266_RTOS_SDK 1.4.0 not working

adysan
Posts: 1
Joined: Mon Feb 29, 2016 1:13 am

'websocket_demo' from the ESP8266_RTOS_SDK 1.4.0 not working

Postby adysan » Mon Feb 29, 2016 1:16 am

New SDK user here. I just tried an included example 'websocket_demo' from the ESP8266_RTOS_SDK 1.4.0 released yesterday. Only thing I changed was wifi credentials in websocket.c. After flashing it does connect to my wifi, but seems to be constantly resetting. Here's the serial log.

Code: Select all

phy ver: 762, pp ver: 10.4
 
SDK version:1.4.0(c599790)
mode : sta(5c:cf:7f:07:4e:81)
add if0
f r-1, websocket_task
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 8
pm open phy_2,type:2 0 0
cnt
 
connected with AdyShan, channel 11
dhcp client start...
ip:192.168.1.181,mask:255.255.255.0,gw:192.168.1.1
Fatal exception (28):
epc1=0x4000debe
epc2=0x00000000
epc3=0x402437f1
epcvaddr=0x00000000
depc=0x00000000
@*rPKtdr.@.Ko8a /t$v'*TP@*nzA8xvA,X'!((A{~An *R*@j|B@*
                                                      nzAn )m~v%!(P+tǬ@j|@*nzAl )m~r[r(OS SDK ver: 1.4.0(c599790) compiled @ Feb 26 2016 11:08:14
phy ver: 762, pp ver: 10.4
 
SDK version:1.4.0(c599790)

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

Re: 'websocket_demo' from the ESP8266_RTOS_SDK 1.4.0 not working

Postby ESP_Faye » Mon Mar 07, 2016 3:59 pm

Hi,

So sorry for the inconvenience, please enlarge the heap size when create the task.

/*start the websocket task*/
void websocket_start(void *optarg)
{
if (Web_QueueStop == NULL)
Web_QueueStop = xQueueCreate(1,1);

if (Web_QueueStop != NULL)
xTaskCreate(websocket_task, "websocket_task", 1024, optarg, 4, NULL);
}

Who is online

Users browsing this forum: No registered users and 2 guests