Listing pages (rated/newest) and per-camera pages are fetched over HTTPS with the certificate bundle; the camera page's Live Feed mode yields the camera's own MJPEG URL (Current Still as fallback), resolved just before playing and cached in favourites. New Provider menu row: insecam / opentopia / mixed. cam_info_t gains provider + title fields and the settings blob a version byte; older favourites and settings still load.
9 lines
381 B
C
9 lines
381 B
C
#pragma once
|
|
#include <stddef.h>
|
|
#include "esp_err.h"
|
|
|
|
// Fetches a whole http(s) page into a NUL-terminated PSRAM buffer (caller frees).
|
|
// Uses esp_http_client with the certificate bundle; fine for ordinary pages,
|
|
// not for endless camera streams (see httpstream.c for those).
|
|
esp_err_t webpage_get(const char *url, const char *user_agent, size_t cap, char **out, size_t *len);
|