Spanda models Bluetooth classic and BLE at the language level for sensor pairing and trusted-device policies.
robot Rover {
bluetooth {
scan for devices where name matches /^sensor-/;
pair trusted_only;
}
}
trusted_only rejects untrusted BLE devices (security integration)Declare GATT services for typed BLE interaction:
ble_service HeartRateSensor {
uuid: "180D";
}
on bluetooth.device_connected { authenticate_device(); }
BluetoothConnection — classic Bluetooth linkBleConnection — BLE linkstd.bluetooth| Capability | Purpose |
|---|---|
bluetooth.scan |
Device discovery |
bluetooth.pair |
Pairing and trust establishment |
Untrusted devices are rejected when pair trusted_only is configured.
simulate_compatibility {
fault BluetoothDisconnect;
}
See also: Connectivity.