Re: GAP - Device Name Characteristic (UUID:0x2A00) can't be write ?
Re: GAP - Device Name Characteristic (UUID:0x2A00) can't be write ?
- Subject: Re: GAP - Device Name Characteristic (UUID:0x2A00) can't be write ?
- From: Etan Kissling <email@hidden>
- Date: Mon, 11 Mar 2013 08:52:49 +0000
- Thread-topic: GAP - Device Name Characteristic (UUID:0x2A00) can't be write ?
Peter,
The device name is handled specially by iOS. You can discover the characteristic, but it is not possible to interact with it directly.
Instead of reading the device name characteristic value, you have to access the name property of the peripheral. It contains an empty name if unknown, the name in the advertisement packets if discovered and the name in the device name characteristic when
connected. This name is then cached.
Reading the device name characteristic manually also leads to an error message. I assume that writing it is somehow related to this as the same characteristic is affected.
Consider using a separate characteristic that updates the device name on write, to check whether iOS will detect through notifications if the device name changes after the initial read.
Etan
Hi,
I am write a IOS6.1 app to communicate with BLE accessory by using the CoreBluetooth framework.
As the profile suggestion, I try to implement writable Device Name Characteristic (UUID:0x2A00).
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden