Other Parts Discussed in Thread: CC2640R2F
Dear All,
I am using the LAUNCHXL-CC2640R2F evaluation module—currently, I learned the BLE programming structure.
I faced some difficulty in the "Bluetooth low energy custom profile" procedure with creating a new service and characteristics. You can find this tutorial in the below-mentioned link.
Up to task 3, I have understood the procedure of creating service and characteristics. Even I checked through my mobile that I can able to view my newly created service and characteristics.
Task 4 is about the payload data transfer "value." Actually, I couldn't be able to follow what is mentioned in that task. Literally, I am doing the same as it mentioned, but I have not got the same as it mentioned.
// See if request is regarding the sun light value Characteristic Value ---------------
if ( ! memcmp(pAttr->type.uuid,sunlightService_SunlightValueUUID, pAttr->type.len) )
{
*pLen = 4;
memcpy(pValue, pAttr->pValue + offset, *pLen);
}
//-----------------------------------------
Please let me that where I did the mistake.
Thank you,
Prakash S