Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IBluetoothAdapter2

interface IBluetoothAdapter2
Extends IBluetoothAdapter

Methods

getSerial()

ISerial* getSerial()
Provides access to Bluetooth Serial capabilities (for example, RFCOMM).

Returns

ISerial* Returns pointer to the ISerial interface.

Throws


getConnectedDevices()

IDevice*[] getConnectedDevices()
Returns list of connected devices.

Returns

IDevice*[] Returns an array of IDevice. If no device is connected, array is empty.

Throws

  • OutOfMemoryError — if not enough memory is available to create the list of devices.

getPairedDevices()

IDevice*[] getPairedDevices()
Returns list of paired devices.

Returns

IDevice*[] Returns an array of IDevice. If no device is connected, array is empty.

Throws

  • OutOfMemoryError — if not enough memory is available to create the list of devices.

getDeviceByAddress()

IDevice* getDeviceByAddress(MacAddress address)
Returns a device from its MAC address. The device must be known (paired).

Parameters

address
MacAddress — Required The MAC address of the device to retrieve.

Returns

IDevice* Returns a device interface IDevice.

Throws


addErrorListener()

com.amazon.apmf.ISubscription* addErrorListener(IErrorListener* listener)
Subscribe to critical Blueteooth service error.

Parameters

listener
IErrorListener* — Required The listener, see IErrorListener.

Returns

com.amazon.apmf.ISubscription* Returns a pointer to ISubscription.

Throws


Last modified on October 29, 2026