Syntax
Commands
| Command | Description |
|---|---|
scan | Scan for BLE devices |
info | Get BLE device information |
connect | Connect to a BLE device |
disconnect | Disconnect from a BLE device |
Command Reference
scan
Scan for nearby BLE devices.
--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
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 gateway
- Address format is
XX:XX:XX:XX:XX:XX(colon-separated hex) - Scan timeout affects how long the gateway searches for devices
- Some devices may not advertise their name until connected

