Tool/software: Code Composer Studio
Hello,
I try to read the Characteristic Value from a Thermometer. I use the CC2640RF as a central, i make a BLE connection with the Thermometer and i wold like to read the "Temperature Measurement Characteristic".
How can I read the value?
// Temperature Measurement Characteristic defines
#define HT_TEMPERATURE_MEASUREMENT_ID 0
#define HT_TEMPERATURE_MEASUREMENT_UUID 0x2A1C
#define HT_TEMPERATURE_MEASUREMENT_LEN 20
#define HT_TEMPERATURE_MEASUREMENT_LEN_MIN
I use this code:
// Do a read
uint8_t status;
attReadReq_t req;
req.handle = (uint16)HT_TEMPERATURE_MEASUREMENT_UUID;
status = GATT_ReadCharValue(connHandle, &req, selfEntity);
if (status == SUCCESS)
{
Display_print0(dispHandle, 9, 0, "SUCCESS");
}
best reagrds,
Fares Rabuts
