Skip to main content
Scan for and interact with Bluetooth Low Energy (BLE) devices through the Lager CLI.

Syntax

Commands

Command Reference

scan

Scan for nearby BLE devices.
Options:
  • --box BOX - Lagerbox name or IP address
  • --timeout FLOAT - Scan duration in seconds (default: 5.0)
  • --name-contains STRING - Filter devices by name (partial match)
  • --name-exact STRING - Filter devices by exact name match
  • --verbose - Include UUIDs in output
Examples:

info

Get detailed information about a BLE device.
Arguments:
  • ADDRESS - BLE device address (e.g., AA:BB:CC:DD:EE:FF)
Returns device information including:
  • Device name
  • Services and characteristics
  • Manufacturer data

connect

Connect to a BLE device.
Arguments:
  • ADDRESS - BLE device address to connect to

disconnect

Disconnect from a BLE device.
Arguments:
  • ADDRESS - BLE device address to disconnect from

Examples


Output Format

Scan Results

The scan command returns a table with:
  • Device address (MAC address format)
  • Device name (if advertised)
  • RSSI (signal strength in dBm)
  • Manufacturer data (if available)

Device Info

The info command shows:
  • Complete device name
  • All advertised services (UUIDs)
  • Characteristics for each service
  • Read/write/notify properties

Use Cases

Device Discovery

Use BLE scanning to discover devices for testing:

Automated Testing

Integrate BLE operations into test scripts:

Notes

  • BLE scanning requires Bluetooth hardware on the box
  • Address format is XX:XX:XX:XX:XX:XX (colon-separated hex)
  • Scan timeout affects how long the box searches for devices
  • Some devices may not advertise their name until connected