AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
An implementation of the BluetoothHostControllerInterface
using BlueZ.
More...
#include <BlueZHostController.h>
Public Member Functions | |
void | onPropertyChanged (const GVariantMapReader &changesMap) |
BluetoothHostControllerInterface Functions | |
virtual | ~BlueZHostController ()=default |
std::string | getMac () const override |
std::string | getFriendlyName () const override |
bool | isDiscoverable () const override |
std::future< bool > | enterDiscoverableMode () override |
std::future< bool > | exitDiscoverableMode () override |
bool | isScanning () const override |
std::future< bool > | startScan () override |
std::future< bool > | stopScan () override |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface | |
virtual | ~BluetoothHostControllerInterface ()=default |
Destructor. More... | |
Static Public Member Functions | |
static std::unique_ptr< BlueZHostController > | create (const std::string &adapterObjectPath) |
An implementation of the BluetoothHostControllerInterface
using BlueZ.
|
virtualdefault |
|
static |
Creates an instance of the BlueZHostController.
adapterObjectPath | The object path of the adapter. |
|
overridevirtual |
Set the adapter to become discoverable.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
|
overridevirtual |
Set the adapter to become non-discoverable.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
|
overridevirtual |
Getter for the friendly name of the adapter.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
|
overridevirtual |
Getter for the MAC address of the adapter.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
|
overridevirtual |
Getter for the discoverability of the device. This must wait until any prior enterDiscoverableMode or exitDiscoverableMode methods have finished.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
|
overridevirtual |
Getter for the scanning state of the device. This must wait until any prior startScan or stopScan methods have finished.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
void alexaClientSDK::bluetoothImplementations::blueZ::BlueZHostController::onPropertyChanged | ( | const GVariantMapReader & | changesMap | ) |
A function for BlueZDeviceManager to alert devices 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 |
Set the adapter to start scanning.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
|
overridevirtual |
Set the adapter to stop scanning.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0