Skip to content
This repository was archived by the owner on May 10, 2022. It is now read-only.
This repository was archived by the owner on May 10, 2022. It is now read-only.

How to close the wifi function with AP model #17

@Herwey

Description

@Herwey

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions