mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-01-06 19:37:48 -08:00
480 B
480 B
id | title | sidebar_label |
---|---|---|
connecting | Connecting to a device | Connecting |
import type React from 'React';
import { IHTTPConnection } from '@meshtastic/meshtasticjs';
export const Connection = (): JSX.Element => {
const connection = new IHTTPConnection();
const connect = (): void => {
void connection.connect({
address: '10.0.0.10',
fetchInterval: 3000,
});
}
return <button onClick={connect}>Connect Bluetooth</button>;
};