fix order: add_mdns_main reply on camera init
parent
cef95e6926
commit
9f0c1a2c83
|
@ -180,6 +180,7 @@ void app_mdns_main()
|
|||
}
|
||||
xSemaphoreGive(query_lock);
|
||||
|
||||
// must be called after camera initialization
|
||||
sensor_t * s = esp_camera_sensor_get();
|
||||
if(s == NULL){
|
||||
ESP_LOGE(TAG, "esp_camera_sensor_get() Failed");
|
||||
|
|
|
@ -10,12 +10,12 @@ 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 *));
|
||||
|
||||
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
|
||||
app_mdns_main();
|
||||
register_cat_face_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
|
||||
register_httpd(xQueueHttpFrame, NULL, true);
|
||||
}
|
||||
}
|
|
@ -10,12 +10,12 @@ 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 *));
|
||||
|
||||
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
|
||||
app_mdns_main();
|
||||
register_human_face_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
|
||||
register_httpd(xQueueHttpFrame, NULL, true);
|
||||
}
|
||||
|
|
|
@ -10,12 +10,12 @@ 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 *));
|
||||
|
||||
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
|
||||
app_mdns_main();
|
||||
register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
|
||||
register_httpd(xQueueHttpFrame, NULL, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue