I am developing an iOS application with a companion Bluetooth LE peripheral device. The only step that I seem to be unable to solve is how to actually transfer data from my application to the periphery or vice versa.
What I have created so far is a test application that can connect to my sample Bluetooth peripherals and read all of its services / features / descriptors. It can switch notifications for this feature and record data. This is just the last step "transfer n bytes to the periphery and get m bytes from the periphery", which I cannot understand.
Looking at the external structure of accessories (what would I use if Apple actually gave me MFI permission for this project), they give you input and output streams in this session for communication with an accessory, but such an object does not exist for CoreBluetooth.
Is it just oversight of Apple’s CoreBluetooth functionality? Or do I just need to develop my own Bluetooth service profile to handle the inflow / outflow of data to and from the peripheral device?
source
share