Skip to content

Connection

Connect

pb connect <device_code>

Establish a WebSocket connection to a device. This starts a background daemon process that maintains the connection.

ParameterTypeRequiredDescription
device_codestringYesDevice code (e.g., IDY291LX6WW6RCW)

TIP

You must connect to a device before using input, screen, file, and app commands. The connection is maintained by a background daemon process.

Example:

bash
pb connect IDY291LX6WW6RCW
text
✓ Connected to device: IDY291LX6WW6RCW
json
{
  "code": 200,
  "data": null,
  "msg": "Connected to device: IDY291LX6WW6RCW"
}

Disconnect

pb disconnect [device_id]

Disconnect from a device. Without arguments, disconnects all active connections.

ParameterTypeRequiredDescription
device_idstringNoDevice ID to disconnect. Omit to disconnect all

Example:

bash
# Disconnect from a specific device
pb disconnect IDY291LX6WW6RCW

# Disconnect all
pb disconnect