import { Show } from "solid-js"; /** * Whether this browser can talk to a serial port at all. * * Read once rather than reactively: the Web Serial API either is or is not in the browser, and it * does not appear part-way through a session. It is also gated on a secure context, so a page * served over plain HTTP from anything but localhost lands here too */ const isSupported = "serial" in navigator; export default function App() { return (

Modbus Serial Tool

}>

Web Serial is available.

); } function Unsupported() { return (

This browser cannot open a serial port

The tool needs the Web Serial API, which is only in Chromium-based browsers — Chrome, Edge and Opera — and only on a secure origin.

If you are on one of those and still see this, check that the page is served over HTTPS or from{" "} localhost.

); }