Receives data from OPH-5000i.
It inherits OPHBluetoothServiceDelegate.
The OPH-5000i application must use AccessoryDataTransfer

Syntax

-(void)bluetoothService:
  (OPHBluetoothService *)service 
  receivedData:(NSData *)data;

Parameters

service
OPHBluetoothService instance.
[in]data
The result received.

Return value

None

Remarks

  1. In order to process the communication result between OPHBluetoothService and OPH-5000i, First, the class that processes the communication result must adopt the OPHBluetoothServiceDelegate protocol. In this sample, the ViewController class uses this protocol.
    Sample
    @interface ViewController <OPHBluetoothServiceDelegate> {
    }
    
  2. Then specify that class as the delegate for your instance of OPHBluetoothService.
    Sample
    OPHBluetoothService *sessionController =  [OPHBluetoothService sharedController];
    [service setDelegate:self];
    
  3. Finally, you can execute the following method in that class to receive from OPH-5000i.
    Sample
    - (void)bluetoothService:(OPHBluetoothService *)service receivedData:(NSData *)data
    {
        NSLog(@"receivedData: %@", data);
    }
    

Requirements

#import <OPHBluetoothService/OPHBluetoothService.h>

Related matters

Last updated: 2022/05/09