Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class BTTransport

Hierarchy

java.lang.Object
     com.smartdevicelink.transport.SdlTransport

Package
com.smartdevicelink.transport

Overview

Bluetooth Transport Implementation. This transport advertises its existence to SDL by publishing an SDP record and waiting for an incoming connection from SDL. Connection is verified by checking for the SDL UUID. For more detailed information please refer to the Bluetooth Transport Guide.

Constructors

BTTransport( ITransportListener transportListener )

public BTTransport(ITransportListener transportListener)

Parameters

transportListener

BTTransport( ITransportListener transportListener, boolean bKeepSocket )

public BTTransport(ITransportListener transportListener,boolean bKeepSocket)

Parameters

transportListener
bKeepSocket

Methods

getBTSocket( BluetoothServerSocket bsSocket )

Deprecated

public android.bluetooth.BluetoothSocket getBTSocket(BluetoothServerSocket bsSocket)

Parameters

bsSocket

getChannel( BluetoothSocket bsSocket )

Deprecated

public int getChannel(BluetoothSocket bsSocket)

Parameters

bsSocket

openConnection()

public void openConnection() throws com.smartdevicelink.exception.SdlException

Throws

disconnect()

public void disconnect()

sendBytesOverTransport( SdlPacket packet )

Sends data over the transport. Takes a byte array and transmits data provided starting at the offset and of the provided length to fragment transmission.

public boolean sendBytesOverTransport(SdlPacket packet)

Parameters

packet

getTransportType()

Overridden abstract method which returns specific type of this transport.

public com.smartdevicelink.transport.enums.TransportType getTransportType()

getBroadcastComment()

public java.lang.String getBroadcastComment()

handleTransportDisconnected( String info )

protected void handleTransportDisconnected(String info)

Parameters

info

handleTransportError( String message, Exception ex )

protected void handleTransportError(String message,Exception ex)

Parameters

message
ex

Inherited Methods

From Class Methods
com.smartdevicelink.transport.SdlTransport getIsConnected, handleReceivedPacket, sendBytesOverTransport, sendBytes, handleTransportConnected, handleTransportDisconnected, handleTransportError, openConnection, disconnect, getTransportType, getBroadcastComment
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section