Index.html for ESP32S3 cam (XIAO)

Hi,

I'm working with a Xiao ESP32S3 Sense with camera. I got the camera webserver working but now I would like to edit the interface / index.html

TLDR: How do I convert a custom html file to camera_index.h ?

What I did so far is this:

  • Opened the web interface, viewed source and copied the html
  • Edited the html
  • Used bin2c.exe to convert my custom html to a .h file

But as you can guess, it's not working. I I don't really know what step is going wrong.

For example, the original camera_index.h looks like this:

#define index_ov2640_html_gz_len 6787
const uint8_t index_ov2640_html_gz[] = {
    0x1F, 0x8B, 0x08, 
    ... , ... , ... , 
    0x10, 0x01, 0x00};

The lenght (_len) is defined as 6787
I used notepad++ to count the hex entries: 24804

Now my custom camera_index.h:

/* Generated by bin2c, do not edit manually */

/* Contents of file index.html */
const long int index_html_size = 31553;
const unsigned char index_html[31553] = {
    0x0D, 0x0A, 0x3C,
    ... , ... , ...
    0x3E, 0x0D, 0x0A};

What should I do to get this working?
I don't even know what exactly to ask but if someone could give me a hint that would be awesome.

Thanks in advance

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.