Create an EASession and open NSInputStream and NSOutputStream.

Syntax

-(BOOL)openSession;

Parameters

None

Return value

Returns YES if a BOOL EASession could be generated. Otherwise, it returns NO.

Remarks

  1. Set yourself as a delegate in the currently held EA Accessory.
  2. Generate and get an EASession. At the time of generation, setupControllerForAccessory: accessory: withProtocolString Use the EAAccessory and protocolString specified in.

Requirements

#import <OPHBluetoothService/OPHBluetoothService.h>

Sample

OPHBluetoothService *sessionController =  [OPHBluetoothService sharedController];
[sessionController openSession];

Related matters

Last updated: 2022/05/09