m5stack / M5Stack-Camera

Base espressif esp32-camera
200 stars 104 forks source link

How to close the wifi function with AP model #17

Open Herwey opened 5 years ago

Herwey commented 5 years ago

Hi: Now, I want to create a task to open the wifi. FreeRTOS task can't have the "return", I created the task as below: void wifi( void * parameter ) { wifi_init_softap(); // 启动wifi //!! http // static httpd_handle_t server = NULL; // http // wifi_init_router(&server);//初始化wifi vTaskDelay(100 / portTICK_PERIOD_MS); // 任务等待 http_server_init(); // 调用http服务 http }

But the "http_server_init()" has "return" value, so task failed. What should I do? Thanks !