interface · Browser and Node

# LinkInfo

`@toip-tools/mesh-transport` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/link.ts#L4)

Import:

```ts
import { type LinkInfo } from "@toip-tools/mesh-transport";
```

## Declaration

interface:

```ts
interface LinkInfo {
  /** "gwmp:AA555A0000000000", "rak:/dev/tty.usbserial-0001", "sim:door". */
  label: string;
  kind: "sim" | "lora" | "ble";
  /** Largest frame this link sends, in bytes. */
  mtu: number;
  /** Everyone in range hears every frame. */
  broadcast: boolean;
  halfDuplex: boolean;
  /** The link retransmits by itself (BLE). */
  reliable: boolean;
  /** From the end of a received frame to when we can transmit. */
  turnaroundMs: number;
  airtimeMs(frameBytes: number): number;
  budget: AirtimePolicy;
}
```

## Properties

**`label` (required)**

`string`

"gwmp:AA555A0000000000", "rak:/dev/tty.usbserial-0001", "sim:door".

**`kind` (required)**

`"ble" | "lora" | "sim"`

**`mtu` (required)**

`number`

Largest frame this link sends, in bytes.

**`broadcast` (required)**

`boolean`

Everyone in range hears every frame.

**`halfDuplex` (required)**

`boolean`

**`reliable` (required)**

`boolean`

The link retransmits by itself (BLE).

**`turnaroundMs` (required)**

`number`

From the end of a received frame to when we can transmit.

**`budget` (required)**

`AirtimePolicy`

## Methods

### `airtimeMs`

Signature:

```ts
airtimeMs(frameBytes: number): number;
```

#### Parameters

- **`frameBytes` (required)**: `number`

#### Returns

`number`

[Usage guide](https://toip.tools/toolkit/mesh-transport/#usage) · [Error handling](https://toip.tools/toolkit/mesh-transport/#errors) · [All exports](https://toip.tools/toolkit/mesh-transport/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/LinkInfo/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
