BTSerialConnectionDelegate Protocol Reference
Conforms to | NSObject |
Declared in | BTSerialConnection.h |
Tasks
-
– connectionOpened:
Sent when the serial device is successfully opened
-
– connectionClosed:
Sent when the serial device is closed
-
– connection:didReceiveData:
Sent when a block of data is received from the connected device
-
– connection:didReceiveMessage:
Sent when a block of data is received from the connected device
-
– connection:didReceiveTerminatedMessage:
Sent when a full message has been accumulated by the BTSerialConnection’s internal data storage. This message will only be sent if the BTSerialConnection messageTerminator property has been set.
Instance Methods
connection:didReceiveData:
Sent when a block of data is received from the connected device
- (void)connection:(BTSerialConnection *)connection didReceiveData:(NSData *)data
Parameters
- connection
The BTSerialConnection instance sending the message.
- data
NSData object received
Discussion
Sent when a block of data is received from the connected device
Declared In
BTSerialConnection.h
connection:didReceiveMessage:
Sent when a block of data is received from the connected device
- (void)connection:(BTSerialConnection *)connection didReceiveMessage:(NSString *)message
Parameters
- connection
The BTSerialConnection instance sending the message.
- message
NSString representation of the data received (NSASCIIStringEncoding)
Discussion
Sent when a block of data is received from the connected device
Declared In
BTSerialConnection.h
connection:didReceiveTerminatedMessage:
Sent when a full message has been accumulated by the BTSerialConnection’s internal data storage. This message will only be sent if the BTSerialConnection messageTerminator property has been set.
- (void)connection:(BTSerialConnection *)connection didReceiveTerminatedMessage:(NSString *)message
Parameters
- connection
The BTSerialConnection instance sending the message.
- message
NSString representation of the data received, converted with NSASCIIStringEncoding.
Discussion
Sent when a full message has been accumulated by the BTSerialConnection’s internal data storage. This message will only be sent if the BTSerialConnection messageTerminator property has been set.
Declared In
BTSerialConnection.h
connectionClosed:
Sent when the serial device is closed
- (void)connectionClosed:(BTSerialConnection *)connection
Parameters
- connection
The BTSerialConnection instance sending the message.
Discussion
Sent when the serial device is closed
Declared In
BTSerialConnection.h
connectionOpened:
Sent when the serial device is successfully opened
- (void)connectionOpened:(BTSerialConnection *)connection
Parameters
- connection
The BTSerialConnection instance sending the message.
Discussion
Sent when the serial device is successfully opened
Declared In
BTSerialConnection.h