When I am using CBPeripheralManager
- (BOOL) updateValue: (NSData *) value forCharacteristic: (CBMutableCharacteristic *) characteristic onSubscribedCentrals: (NSArray *) centrals;
Can be used to send data from peripherals to the central[CentralManager] .
But how can I send data from central[CBCentralManager]
to Peripherals?
There is no method for that?
At last, how CBPeripheralManager
receive data?
I have a question about CoreBluetooth
Here is the code https://drive.google.com/file/d/0B1trn7LauGlrWmdIQUJkcldvZzg/edit?usp=sharing
There are two projects are Central and Peripheral
When the Peripheral connections Central. There is one in the Peripheral SendData method that can send data to the Central, in Central has a method for receiving data
- (void) peripheral: (CBPeripheral *) _peripheral didUpdateValueForCharacteristic: (CBCharacteristic *) characteristic error: (NSError *) error
The question is, how can I send data from the Central and Peripheral receives it?