mirror of
https://github.com/meshtastic/web.git
synced 2026-04-18 04:47:50 -04:00
Replace no-cors opaque fetch with a real CORS probe against /api/v1/fromradio so the client detects actual CORS and cert failures. Return structured error reasons with user-actionable messages. Replace redundant manual OPTIONS probe in TransportHTTP with a GET /fromradio check with proper timeout and error handling. Retry connection test up to 3 times in AddConnectionDialog with attempt progress shown in the button. Remove broken useLocalStorage test. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@meshtastic/transport-http
Overview
@meshtastic/transport-http Provides HTTP(S) transport for Meshtastic devices.
Installation instructions are available at
JSR
NPM
Usage
import { MeshDevice } from "@meshtastic/core";
import { TransportHTTP } from "@meshtastic/transport-http";
const transport = await TransportHTTP.create("10.10.0.57");
const device = new MeshDevice(transport);