Minor fixes for the last merge (#137)

* Add the missing Save button to the web UI for OV5640

* Add MDNS feature that allows the cameras to be found

* Add mDNS Camera Query

* fix bug in mdns json generator

* Fix missing mdns dependency
pull/138/head
Me No Dev 2020-03-30 05:57:17 +03:00 committed by GitHub
parent 67a57377cf
commit 3a734c0d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ set(COMPONENT_REQUIRES
nvs_flash nvs_flash
esp_http_server esp_http_server
fb_gfx fb_gfx
mdns
) )
set(COMPONENT_EMBED_FILES set(COMPONENT_EMBED_FILES

View File

@ -97,7 +97,7 @@ const char * app_mdns_query(size_t * out_len)
p += sprintf(p, "\"framesize\":\"%s\",", framesize); p += sprintf(p, "\"framesize\":\"%s\",", framesize);
p += sprintf(p, "\"stream_port\":\"81\","); p += sprintf(p, "\"stream_port\":\"81\",");
p += sprintf(p, "\"board\":\"%s\",", CAM_BOARD); p += sprintf(p, "\"board\":\"%s\",", CAM_BOARD);
p += sprintf(p, "\"model\":\"%s\",", model); p += sprintf(p, "\"model\":\"%s\"", model);
*p++ = '}'; *p++ = '}';
*p++ = ','; *p++ = ',';
p += sprintf(p, "\"ip\":\"" IPSTR "\",", IP2STR(&(ip.ip))); p += sprintf(p, "\"ip\":\"" IPSTR "\",", IP2STR(&(ip.ip)));