Alexa Auto SDK  4.3
Public Member Functions | List of all members
aace::bluetooth::BluetoothProvider Class Reference

Public Member Functions

virtual std::shared_ptr< GATTServer > createGATTServer ()
 
virtual std::shared_ptr< BluetoothServerSocket > listenUsingRfcomm (const std::string &name, const std::string &uuid)
 
virtual std::shared_ptr< BluetoothServerSocket > listenUsingiAP2 (const std::string &protocol)
 

Detailed Description

Provide RFCOMM and/or GATT implementation.

Member Function Documentation

◆ createGATTServer()

std::shared_ptr< GATTServer > aace::bluetooth::BluetoothProvider::createGATTServer ( )
virtual

Create a GATT Server.

Returns
the created GATT server. nullptr if GATT is not supported.

◆ listenUsingRfcomm()

std::shared_ptr< BluetoothServerSocket > aace::bluetooth::BluetoothProvider::listenUsingRfcomm ( const std::string &  name,
const std::string &  uuid 
)
virtual

Create a listening and secure RFCOMM server socket and register the corresponding SDP record. The connection accepted from the server socket should be encrypted and authenticated from trusted device.

Parameters
nameservice name for SDP record
uuiduuid for SDP record
Returns
the created server socket

◆ listenUsingiAP2()

std::shared_ptr< BluetoothServerSocket > aace::bluetooth::BluetoothProvider::listenUsingiAP2 ( const std::string &  protocol)
virtual

Create a iAP2 server socket with specified protocol.

Parameters
protocolthe protocol to use when communicating with the device
Returns
the created server socket. nullptr if any error occurs.

Alexa Auto SDK 4.3 - Copyright 2017-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0