fix mdns init in examples

mdns must be initialized after camera
pull/245/head
remipch 2023-02-19 08:01:30 +01:00
parent ed72c1e2fb
commit 4335b5d18a
3 changed files with 9 additions and 3 deletions

View File

@ -10,7 +10,6 @@ static QueueHandle_t xQueueHttpFrame = NULL;
extern "C" void app_main()
{
app_wifi_main();
app_mdns_main();
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
xQueueHttpFrame = xQueueCreate(2, sizeof(camera_fb_t *));
@ -18,4 +17,7 @@ extern "C" void app_main()
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
register_cat_face_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
register_httpd(xQueueHttpFrame, NULL, true);
// Must be done after camera initialization because it calls 'esp_camera_sensor_get'
app_mdns_main();
}

View File

@ -10,7 +10,6 @@ static QueueHandle_t xQueueHttpFrame = NULL;
extern "C" void app_main()
{
app_wifi_main();
app_mdns_main();
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
xQueueHttpFrame = xQueueCreate(2, sizeof(camera_fb_t *));
@ -18,4 +17,7 @@ extern "C" void app_main()
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
register_human_face_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
register_httpd(xQueueHttpFrame, NULL, true);
// Must be done after camera initialization because it calls 'esp_camera_sensor_get'
app_mdns_main();
}

View File

@ -10,7 +10,6 @@ static QueueHandle_t xQueueHttpFrame = NULL;
extern "C" void app_main()
{
app_wifi_main();
app_mdns_main();
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
xQueueHttpFrame = xQueueCreate(2, sizeof(camera_fb_t *));
@ -18,4 +17,7 @@ extern "C" void app_main()
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
register_httpd(xQueueHttpFrame, NULL, true);
// Must be done after camera initialization because it calls 'esp_camera_sensor_get'
app_mdns_main();
}