- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I cannot change a characteristic on a 4200BLE using my iPhone 5. Here is the xcode running on my iPhone:
____________________________
let data: String = newAlarmValue.text! //this is coming from an xcode text field.
let value = data.dataUsingEncoding(NSUTF8StringEncoding)
print(value!)
print(alarmValueCharacteristic!) //the alarmValueCharateristic type on the 4200BLE is UInt8
selectedPeripheral!.writeValue(value!, forCharacteristic: alarmValueCharacteristic!, type: CBCharacteristicWriteType.WithoutResponse)
_______________________________
I print characteristic and value in my console to check I am writing to the right characteristic. I can change the value in the characteristic with the PSoC Creator interface and confirm the change has occurred in the xcode console. But I can't get the characteristic value to change over the air.
Do I need to do something in the event hanlder in main.c?
Thanks,
Pat
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Are you able to write the charactertis value using a CySmart iOS App or CySmart PC Tool? If so, the problem might be with your iOS Code.
If not, please check if the "write" property is selected in the Profile Settings in the BLE Component Window.
Regards,
- Madhu Sudhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Are you able to write the charactertis value using a CySmart iOS App or CySmart PC Tool? If so, the problem might be with your iOS Code.
If not, please check if the "write" property is selected in the Profile Settings in the BLE Component Window.
Regards,
- Madhu Sudhan