laptou / bluez-rs

Control Bluetooth on Linux.
MIT License
39 stars 9 forks source link

Question about sending commands #24

Closed EthanYidong closed 3 years ago

EthanYidong commented 3 years ago

Sorry for bothering again, but I'm a bit confused on how this crate sends HCI commands. The bytes generated here: https://github.com/laptou/bluez-rs/blob/01ee38b4c1b42359afedec1d6f8f1e3fa2e5ed02/src/interface/request.rs#L13-L24

don't seem to line up with the C library here. Would you mind explaining where I can find documentation about the type of data that can be sent to the HCI socket/stream?

laptou commented 3 years ago

This library doesn't send raw HCI commands, it only sends commands to the management API, whose format is specified here.