I need to write a value from "a" to "o" to a bluetooth device. The device uses SPP and I'm already connected via IOBluetoothRFCOMMChannel
.
There are functions like writeSync:lenght:
but how do I use them? As I said, I need to send a value from "a" to "o"
I tried:
[rfcommChannel writeSync:"a" length:1];
but it isn't working.
Apple has an example code with:
[rfcommChannel writeSync:"ATZ\n" length:4];
but I'm not sure what "ATZ" means.