Syntax
Commands
Command Reference
scan
Scan for nearby BLE devices.
--box BOX- Lager Box 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
info
Get detailed information about a BLE device.
ADDRESS- BLE device address (e.g.,AA:BB:CC:DD:EE:FF)
- Device name
- Services and characteristics
- Manufacturer data
connect
Connect to a BLE device.
ADDRESS- BLE device address to connect to
disconnect
Disconnect from a BLE device.
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
- BLE uses BlueZ on the box host.
lager installandlager updateinstall it. If the box host does not have BlueZ, BLE commands fail withBlueZ is not running on the box host. To fix this, runlager updatefor the box, or runsudo apt install -y bluez && sudo systemctl enable --now bluetoothon 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 do not advertise their name until they connect

