Hi,
I would like to know the functioning of CPFD (I would like to represent the characteristic value as IEEE754 float32) I am not aware of how can I implement this. for example, if I am measuring the acceleration (float value), but I would like to send the data as int32 type (which following method should I chose in case of CPFD?)
1. Convert the float measuured value to corresponding hexadecimal value according to IEEE754 Floating point representation and mention in the descriptor that I uses IEEE754 so that, master can convert back it in to the float point
2. or I can use float datatype for the characteristic value by mentioning CPFD as #define BLE_GATT_CPF_FORMAT_FLOAT32 (according to Characteristic Presentation Formats (nordicsemi.com) )?
all together I just want to know what is CPFD, how to implement this and how this helps me with my project of reading acceleration value (with fractional value).
Thanks in advance for your time and effort.
with Regards,
Sreejith