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 ISerialConnection

interface ISerialConnection
Extends com.amazon.apmf.IStandard

Methods

connect()

void connect()
Attempt to connect. The connect() blocks until either the connection is successful or the connection failed. Privilege: com.amazon.bluetooth.privilege.serial

Throws


disconnect()

void disconnect()
Disconnect the connection. Privilege: com.amazon.bluetooth.privilege.serial

sendData()

void sendData(u8[] data)
Send data. Privilege: com.amazon.bluetooth.privilege.serial

Parameters

data
u8[] — Required Array of bytes.

Throws


getDevice()

IDevice* getDevice()
Return the device related to this connection interface.

Returns

IDevice* Returns pointer to IDevice.
Last modified on October 29, 2026