API referenceQnbot Exo PlusJava (Android)

USB host

Core interfaces

Current version · 1.4.0

SerialTransport

com.qnbot.sdk.android.SerialTransport

SerialTransport.inventory

String inventory() throws IOException

SerialTransport.open

long open(String port, int baudrate) throws IOException

SerialTransport.read

int read(long link, byte[] buffer, int timeoutMs) throws IOException

SerialTransport.write

void write(long link, byte[] bytes) throws IOException

SerialTransport.close

void close(long link) throws IOException

SerialTransport.release

default void release() throws IOException

UsbSerialTransport

com.qnbot.sdk.android.UsbSerialTransport

UsbSerialTransport.UsbSerialTransport

UsbSerialTransport(Context context)

UsbSerialTransport.hasPermission

boolean hasPermission(String port) throws IOException

UsbSerialTransport.requestPermission

void requestPermission(String port, PendingIntent result) throws IOException

UsbSerialTransport.inventory

String inventory() throws IOException

UsbSerialTransport.open

long open(String port, int baudrate) throws IOException

UsbSerialTransport.read

int read(long id, byte[] buffer, int timeoutMs) throws IOException

UsbSerialTransport.write

void write(long id, byte[] bytes) throws IOException

UsbSerialTransport.close

void close(long id) throws IOException

UsbSerialTransport.close

void close() throws IOException

UsbSerialTransport.release

void release() throws IOException