function · Node only

# probeSerial

Works out what is on one serial port.

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

Import:

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

## Declaration

Signature:

```ts
probeSerial(port: SerialPortLike, opts?: {
    listenMs?: number;
    probeMs?: number;
}): Promise<RadioDetection>;
```

### Parameters

**`port` (required)**

`SerialPortLike`

**`opts` (optional)**

`{ listenMs?: number; probeMs?: number; }`

Default: `{}`

**Fields of `opts`**

- **`listenMs` (optional)**: `number | undefined`
- **`probeMs` (optional)**: `number | undefined`

### Returns

`Promise<RadioDetection>`

[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/detect/)

---

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