function · Browser and Node

# p2pCommand

`AT+P2P=freq:SF:bandwidth code:coding rate code:preamble:power`. Bandwidth codes: 0 = 125, 1 = 250, 2 = 500 kHz.

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

Import:

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

## Declaration

Signature:

```ts
p2pCommand(s: LoRaSetting): string;
```

### Parameters

- **`s` (required)**: `LoRaSetting`

### Returns

`string`

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

---

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