BTSerialConnection Class Reference
Inherits from | NSObject |
Declared in | BTSerialConnection.h |
Overview
BTSerialConnection is simple API for writing and receiving data from serial devices.
Messages are automatically received from the connected device in the background, simplifying the asynchronous receive process. Received messages or data is delivered through delegate methods, and can be redirected to the appropriate thread or operation queue as needed by an application.
Messages are received by implementing at least one of the BTSerialConnectionDelegate messages.
Tasks
-
– openConnection
Opens a connection to the configured serial device
-
– closeConnection
Closes an existing connection
-
– writeData:
Write a block of data to the serial device.
-
– writeMessage:
Write a string to the serial device.
Instance Methods
closeConnection
Closes an existing connection
- (BOOL)closeConnection
Discussion
Closes an existing connection
Declared In
BTSerialConnection.h
openConnection
Opens a connection to the configured serial device
- (BOOL)openConnection
Discussion
Opens a connection to the configured serial device
Declared In
BTSerialConnection.h