Detailed Description
iOSSession implements IDBlueSession, that manages searching for and connecting to IDBLUE devices using the EAAccessory Framework.
Member Function Documentation
Callback method that is invoked when an EAAccessory is connected to the iPhone.
Callback method that is invoked whne an EAAccessory is disconnected from the iPHone.
Get the current IDBLUE device
- Returns:
- The EAAccessory representing the current IDBLUE device
Gets an array of EAAccerrory objects representing IDBLUE devices connected to the iPhone.
- Returns:
- an NSArray containing EAAccessory objects
Get the first IDBLUE device from the list of connected EAAccessories.
- Returns:
- The first EAAccessory that is an IDBLUE device from the list returned from getDevices if an IDBLUE device exists, nil otherwise.
Get whether an EAAccessory is an IDBLUE device or not.
- Returns:
- TRUE if the accessory is an IDBLUE device, false otherwise
Open a session to the first IDBLUE device found using getFirstIDBlueDevice
- Returns:
- TRUE if the device was set and a session was opened, FALSE otherwise
- (unsigned int) readIncomingData: |
|
(NSInputStream*) |
input |
withFlush: |
|
(BOOL) |
flush |
|
|
| |
Read all bytes available in the input stream
- Parameters:
-
input | The stream to read from |
flush | Wheter to flush the data (i.e. don't process it), or process it as a response from IDBLUE. |
- Returns:
- The number of bytes read
Sets the current IDBLUE device
- Parameters:
-
device | The EAAccessory object of the IDBLUE device to connect to. |
- Returns:
- Whether the set device was successful
The documentation for this class was generated from the following files: