Use a normal web page to display readings and send simple commands. First make the built-in page work; then add your own layout.
If a step fails, use Browser connection checks.
Choose USB browser (RNDIS) to show readings and controls in a web page. The PIC appears as a USB network adapter. The library provides the small local network and web server, so the browser can ask the PIC for pages and data over the USB cable. You do not need to run a web-server program on the PC.
You can keep the page inside the PIC, or keep an HTML file on the PC and open it directly in the browser. In either case, the firmware decides what each reading and command means. You do not build Ethernet packets, USB reports or HTTP replies yourself.
Keep it simple and local. The device handles one TCP connection at a time. Send one browser request at a time and keep pages small. It uses HTTP, has no HTTPS service, and is not a general file server. It does not need Internet access; Windows may show No Internet access, which is normal for this adapter.
Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator