This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541 Keyfob & swift iOS application

Other Parts Discussed in Thread: CC2541

Hi,

I'm trying to write simple swift iOS application that will turn buzzer of CC2541 Keyfob on. So far Keyfob successfully connects to iPhone, Immediate Alert Service (UUID 0x1802) is discovered, as well as characteristic UUID (0x2A06). I know that I should write 0x01 or 0x02 value to discovered characteristic for lower or higher buzzer sound respectively. I tried to do this using writeValue method embedded in Core Bluetooth Framework. Everything seems just fine, the method executes, but there's no sound coming from buzzer. Obviously I'm doing something wrong...

Could someone please explain writing procedure in swift using writeValue method? I'm totally stuck at this point...

Thanks a lot!

J