how to add other xTaskCreate when fisrt call smartconfig

aih5165
Posts: 15
Joined: Thu Aug 25, 2016 1:32 pm

how to add other xTaskCreate when fisrt call smartconfig

Postby aih5165 » Sun Sep 03, 2017 1:39 pm

The code:
void app_main()
{

smart_app(); // 3,4096


//oled_app(); // 11,2048
//timer_app(); // 5,2048
//tcp_app(); // 4,4096
//led_app(); // 9,1024
//uartx_app(); // 10.1024
}

Note:
every *_app() is a "xTaskCreate ()",

Problem:
I found after smart_app(), none xTaskCreate could run,
is ther any point I should care?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: how to add other xTaskCreate when fisrt call smartconfig

Postby ESP_igrr » Mon Sep 04, 2017 3:08 am

Priority of Smartconfig task is 3, while that of the main task is 1. So if smartconfig task is busy, it will not let main task to continue running.

aih5165
Posts: 15
Joined: Thu Aug 25, 2016 1:32 pm

Re: how to add other xTaskCreate when fisrt call smartconfig

Postby aih5165 » Tue Sep 05, 2017 1:40 am

yes that's right 3q very much ,it realy help me

Who is online

Users browsing this forum: Baidu [Spider] and 164 guests