The iOS library (OPHBluetoothService.framework) provides the following methods.

Methods

Name Description
closeSession Close the EASession and remove the RunLoop. Release EASession and initialize it with nil.
openSession Create an EASession and open NSInputStream and NSOutputStream.
receivedData Receives data from OPH-5000i.
It inherits OPHBluetoothServiceDelegate.
setupControllerForAccessory Initializes the specified EAAccesory and protocolString.
sharedController Returns an instance of OPHBluetoothService.
writeData Send data to OPH-5000i.

Property

@property (weak, nonatomic, readonly) EAAccessory *accessory;
Connected EA Accessory.
@property (nonatomic, readonly) NSString *protocolString;
ProtocolString of the connected device.
@property (nonatomic, weak) id <OPHBluetoothServiceDelegate> delegate;
Delegate that will be executed after receiving data.

Related matters

Last updated: 2022/05/09