Hi,
I am write a IOS6.1 app to communicate with CC2540 by using the CoreBluetooth framework.
As the profile suggestion, I try to implement writable Device Name Characteristic (UUID:0x2A00).
I follow the instruction from CC2540 DeviceNameWrite :
uint8 devNamePermission = GATT_PERMIT_READ | GATT_PERMIT_WRITE;
GGS_SetParameter( GGS_W_PERMIT_DEVICE_NAME_ATT, sizeof ( uint8 ), &devNamePermission );
After i discovery the Device Name Characteristic, I write the characteristic by using writeValue:forCharacteristic:type:
But I get the following error message:
Error Domain=CBErrorDomain Code=8 "The specified UUID is not allowed for this operation." UserInfo=0x1f8932e0 {NSLocalizedDescription=The specified UUID is not allowed for this operation.}, characteristic UUID:Device Name
I have checked the Characteristic properties is CBCharacteristicPropertyWrite.
I spend all day to debug the issue but i can't resolve it until now.
Any suggestion is welcome.
Many Thanks!
- Peter