Reading Characteristic value other than uint8 | Cypress Semiconductor
Reading Characteristic value other than uint8
I'm making a project in which the client reads a few values from the server when the server characteristics are updated.
From what I understand, this is how to read characteristic values:
/* This event is generated when the connected Central */
/* device sends a Write request. */
/* The parameter 'eventParam' contains the data written */
wrReqParam = (CYBLE_GATTS_WRITE_REQ_PARAM_T *) eventParam;
if (CYBLE_DELAY_SERVICE_DELAY_INFO_CHAR_HANDLE ==
uint16value = wrReqParam->handleValPair.value.val;
This words fine for the array, but when i use a uint16 it won't allow it, as "handleValPair.value.val" is a uint8. If someone could help me with this or point me in the direction of a good example of how to read/write characteristic values it would be much appreciated. Thanks in advance.