Przejdź do głównej zawartości

Connecting to a device

import { MeshDevice } from "@meshtastic/core";
import { TransportHTTP } from "@meshtastic/transport-http";

// Enter the IP address of your Meshtastic device. By default they
// are discoverable also as 'meshtastic.local'
const connection = await TransportHTTP.create("meshtastic.local");
const device = new MeshDevice(connection);
await device.configure();
// After the configure step the device connection is ready