Output all properties and options

This commit is contained in:
Kamil Trzcinski
2022-07-08 12:12:30 +02:00
parent 9051518082
commit b4668aa320
7 changed files with 42 additions and 17 deletions

View File

@ -51,7 +51,14 @@ void camera_http_option(http_worker_t *worker, FILE *stream)
bool headers = false;
http_enum_params(worker, stream, camera_http_set_option, &headers);
if (!headers) {
http_404(stream, "No options passed.\r\n");
http_404(stream, "");
fprintf(stream, "No options passed.\r\n");
}
fprintf(stream, "\r\nSet: /option?name=value\r\n\r\n");
if (camera) {
device_dump_options(camera->camera, stream);
}
}