You can keep a small page in the PIC, or keep the HTML on the PC so it is easier to edit. The same value and command APIs serve both choices.
The RNDIS folder includes Built In Pages and External Page, with HTML pages matching the test firmware. Copy the page for the example you are using, get that pair working, then change the layout. The folder guide explains when an HTML edit needs a new firmware build.

Choose where your browser page will live. Use Built-in page for the first test; choose a custom layout when you are ready to import your own HTML. Use this picture to find the controls; generate your own code and memory settings. Do not copy the pictured allocation figures.
|
Page layout |
What the browser can open |
|
Built-in page — mode 0 |
/ displays the supplied page. No page table is needed. Named output fields are displayed automatically. |
|
Custom pages (page 1 at /) — mode 1 |
/ and page 1's named URL display page 1. Other enabled pages have their own named URLs. |
|
Built-in / + named pages — mode 2 |
/ keeps the supplied page; each custom page has a named URL. |
|
External HTML (data only) — mode 3 |
The PIC stores no HTML. / returns 404; /status and enabled /write remain available. |
To put your own page inside the firmware:

An imported page appears in the preview. Here page 1 is named main and opens at both /main and /. Copy the updated Integration output so the page tables and their sizes stay together. Use this picture to find the controls; generate your own code and memory settings. Do not copy the pictured allocation figures.
Web Include contains generated CData tables in modes 1 and 2, not HTML to paste directly into BASIC. No companion page include or Export Files step is required. Keep the original HTML separately so you can edit and reimport it later. After changing or reimporting a page, regenerate both the configuration definitions and Web Include tables together so the page contents and byte counts agree.
Named page URLs are exact and case-sensitive. A page named measurements is not /Measurements, /measurements/ or /measurements?x=1. A simple link between firmware pages is <a href="/settings">Settings</a> when a page named settings has been imported.
Keep the HTML file on the PC if you want to edit the page without programming the PIC again. Keep the same published field names and command meanings, or update the firmware to match.
The external mode supplies CORS response headers so the browser can read responses from the PIC. Its required write header also causes a browser preflight request, which this mode handles. null permits local-file/opaque origins; it does not identify one particular HTML filename.
If your page is already hosted elsewhere, set Allowed page origin to its exact origin, such as https://example.com or http://example.com:8080: scheme, host and optional port, without a path. Do not enter *. HTTPS pages contacting an HTTP-only device may face additional browser restrictions. Changing this setting cannot override those restrictions.
CORS and X-USB-Write are browser-access controls, not user authentication. The device has no password or HTTPS service. Keep this interface local unless you deliberately provide a separate, suitably protected way to reach it.
Created with the Personal Edition of HelpNDoc: Maximize Your Productivity with a Help Authoring Tool