AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
A BlueZ implementation of the BluetoothDeviceInterface
.
More...
#include <BlueZBluetoothDevice.h>
Static Public Member Functions | |
static std::shared_ptr< BlueZBluetoothDevice > | create (const std::string &mac, const std::string &objectPath, std::shared_ptr< BlueZDeviceManager > deviceManager) |
A BlueZ implementation of the BluetoothDeviceInterface
.
|
override |
|
overridevirtual |
Initiate a connect with this device.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
static |
Creates an instance of the BlueZBluetoothDevice.
mac | The MAC address. |
objectPath | The DBus object path. |
deviceManager | The associated deviceManager. |
|
overridevirtual |
Initiate a disconnect with this device.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Getter for the Bluetooth device metadata.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Getter for the DeviceState
.
DeviceState
of the current device. Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Getter for the friendly name.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Getter for the MAC address.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
std::string alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDevice::getObjectPath | ( | ) | const |
Gets the DBus object path of the device.
|
overridevirtual |
Get the Bluetooth service that this device supports.
uuid | the uuid of the Bluetooth Service. |
BluetoothServiceInterface
if supported, else a nullptr. Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Getter for the paired state of the device. This should return the state after any pending state changes have been resolved.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Getter for the paired state of the device. This should return the state after any pending state changes have been resolved.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
void alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDevice::onPropertyChanged | ( | const GVariantMapReader & | changesMap | ) |
A function for BlueZDeviceManager to alert the BlueZ device when its property has changed. This is to avoid having multiple objects subscribing to DBus events.
changesMap | A map containing the property changes of the device. |
|
overridevirtual |
Initiate a pair with this device.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
overridevirtual |
Sets the pairing pin for the current pairing attempt. PIN length can range from 4 to 16 alphanumeric characters, though most devices will only accept numeric characters in the PIN. Expected call flow is: pair() -> PIN request callback -> setPairingPin()
pin | BT pairing pin |
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
|
override |
|
overridevirtual |
Initiate an unpair with this device.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0