function · Browser and Node

# estimate

Frames and airtime (frames plus one ACK) to send a packet once over `link`.

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

Import:

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

## Declaration

Signature:

```ts
estimate(packetBytes: number, link: Pick<LinkInfo, "mtu" | "airtimeMs">): {
    frames: number;
    airtimeMs: number;
};
```

### Parameters

- **`packetBytes` (required)**: `number`
- **`link` (required)**: `Pick<LinkInfo, "airtimeMs" | "mtu">`

### Returns

`{ frames: number; airtimeMs: number; }`

## Returned object

The returned object exposes these properties and methods.

## Properties

- **`frames` (required)**: `number`
- **`airtimeMs` (required)**: `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/estimate/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
