Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I amdeveloping a app for my own BLE device and trying to send TX Msg as

let bytes : [UInt8] = [ 0x02, 0x10, 0x03, 0x01, 0x01, 0x01, 0x18 ]
I should receive the message as the

RX:[02 10 15 00 F8 FF 00 10 D1 10 D0 87 62 F2 CA 14 3F BA CE AB ]
RX:[146, 185, 66, 202, 82]
I could see only

RX:[146, 185, 66, 202, 82]. not the total 25 bytes
When I am trying to read the data from BLE i could't. I not able to get the expected response and I am getting the error as "writing is not permitted".

What I have tried:

I tried to read the characterstic properties but i was able to read the following propeties 0 : <CBCharacteristic: 0x10122e550, UUID = 8B00ACE7-EB0B-49B0-BBE9-9AEE0A26E1A3, properties = 0x4, value = <00>, - 1 : <CBCharacteristic: 0x1012cda00, UUID = 0734594A-A8E7-4B1A-A6B1-CD5243059A57, properties = 0x10, value = <92b942ca 52>, - 2 : <CBCharacteristic: 0x1011d5100, UUID = BA04C4B2-892B-43BE-B69C-5D13F2195392, properties = 0x6, value = <72> - 3 : <CBCharacteristic: 0x10523e000, UUID = E06D5EFB-4F4A-45C0-9EB1-371AE5A14AD4, properties = 0x12, value = <5b> - 4 : <CBCharacteristic: 0x1011f3d60, UUID = 64616E6C-6177-6175-7468-656E74696361, properties = 0x4, value = (null)
how can I set the write property
Posted
Updated 13-Apr-18 3:28am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900