Struct blackmagic_camera_control::camera::BluetoothCamera [−][src]
pub struct BluetoothCamera { /* fields omitted */ }Implementations
Takes the BLE name of the camera and returns a new BluetoothCamera instance
Arguments
name- &str representing the Bluetooth name of the camera such as “A:5CA7128B”
Tries to connect to the camera, waiting as long as supplied timeout specifies
Arguments
timeout- std::Duration of how long to wait before giving up
Disconnects from the camera
NOTE: THIS ACTUALLY DOESN’T WORK ON OSX BECAUSE THE UNDERLYING LIBRARY IS PEPEGA
pub async fn write(
&mut self,
destination: u8,
operation: Operation,
command: Command
) -> Result<(), BluetoothCameraError>
Gives you the latest cached version of the supplied Command If no cached version is found, returns the empty property
Arguments
cmd- Command like this: Command::Metadata(Metadata::LensDistance(“”.to_string()))
Gives you the latest cached version of the supplied normalized_name
Arguments
normalized_name- &str like this: metadata_lens_distance