iOS central writing is not permitted
问题 I am a ios developer. I can take a value from arduino sensor. But i cannot send a message by using the following the method. [peripheral writeValue:dataToWrite forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; " dataToWrite " value is alloc by using NSString * NSString* data = @"1"; NSData* dataToWrite = [data dataUsingEncoding:NSUTF8StringEncoding]; and the following code is full code of "DiscoverCharacteristics in service" //DISCOVER CHAR -(void)peripheral: