Hi,
We're trying to send data from our CC2540 to an iPhone application. We used iPhoneFileTransfer example as a starting point - but we have been unable to even get that example going (the iPhone4SBLEDemo demo worked fine). We also tested using two CC2540 devices talking to each other and have been able to successfully get this working.
Any messages sent from the CC2540 using GATT_NOTIFICATION will arrive at other CC2540 devices; but we're unable to receive them on an iPhone. The code in the example seems to expect the data to arrive in didUpdateValueForCharacteristic with a characteristic value represented by TI_KEYFOB_ACCEL_X_UUID. However our understanding is that such notifications (sent using GATT_NOTIFICATION) don't have an associated characteristic (is this correct?). The didUpdateValueForCharacteristic code never even seems to get called for this application.
Has anyone else got the File Transfer example working? (I saw another thread here where someone was unable to get it working but there were no responses).
Alternatively we're looking at using GATT_PROP_NOTIFY on a characteristic. My understanding is that if this property is set on a characteristic (and if you set notifications on in the iPhone app for that characteristic), that whenever that characteristic is updated on the CC2540, the iPhone will receive a notification with the updated value (as apposed to just a notification without the actual changed data). Is this correct? Is there any risk of the CC2540 updating the characteristic multiple times without sending a notification or the iPhone missing notifications or data due to the speed the CC2540 writes to the characteristic?
Kind Regards,
Tom