These days I am working on a project in which we need to connect a non-MFI Bluetooth device to the iPhone, and this device does not support the BLE peripheral client, so we have to do it on classic Bluetooth.
I was able to connect and connect the device to the iPhone using BluetoothManager.framework using the BeeTee demo project guide
But I do not know how to send and return data, I can not find the API in the class headers.
It seems that the answer lies in these three structs:BTAccessoryManagerImpl and BTSessionImpl and BTDeviceImpl , but I can not determine their definition.
@class NSMutableDictionary; struct BTSessionImpl { }; struct BTDeviceImpl { }; @interface BluetoothManager : NSObject { struct BTAccessoryManagerImpl { } *_accessoryManager; BOOL _audioConnected; int _available; NSMutableDictionary *_btAddrDict; NSMutableDictionary *_btDeviceDict; struct BTDiscoveryAgentImpl { } *_discoveryAgent; struct BTLocalDeviceImpl { } *_localDevice; struct BTPairingAgentImpl { } *_pairingAgent; BOOL _scanningEnabled; BOOL _scanningInProgress; unsigned int _scanningServiceMask; struct BTSessionImpl *_session;
source share