M5Stack-Camera
M5Stack-Camera copied to clipboard
How to close the wifi function with AP model
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 !