Interface ISerialServer
interface ISerialServer
Extends com.amazon.apmf.IStandard
Methods
acceptConnection()
Accept a connection request from a device. The connection request is a callback from the listener (see [ISerialServerListener]). See description in onConnectionRequest for the sequence of events. Privilege: com.amazon.bluetooth.privilege.serialvoidacceptConnection(IDevice*device,ISerialConnectionListener*listener)
Parameters
device
IDevice* — Required
The device to accept the connection to.
listener
ISerialConnectionListener* — Required
Callback for receiving connection event related to this
server, see [ISerialConnectionListener]. The listener monitors the
connection event (connection state, congestion state, data received).
rejectConnection()
Reject a connection request from a device. The connection request is a callback from the listener (see [ISerialServerListener]). See description in onConnectionRequest for the sequence of events. Privilege: com.amazon.bluetooth.privilege.serialvoidrejectConnection(IDevice*device)
Parameters
device
IDevice* — Required
The device to reject the connection from.

