The SimpleLink Academy shows us to use code like this for our xxxService_ReadAttrCB function:
if ( ! memcmp(pAttr->type.uuid, myCoolCharUuid, pAttr->type.len) ) {
.....
}
See this link: http://dev.ti.com/tirex/explore/node?node=AETVcTRqok2cbWCjbdtG5w__pTTHBmu__LATEST
Go down to the GATT Server Callbacks section and look at the non-minimal implementation of myService_ReadAttrCB.
When I do this, I get two warnings on the if statement:
"../Application/services/RaceControlService.c", line 333: warning #169-D: argument of type "int" is incompatible with parameter of type "const void *
"../Application/services/RaceControlService.c", line 333: warning #154-D: conversion of nonzero integer to pointer
How can I get rid of these warnings?
Unrelated question: Are tags on our E2E questions important? If so, how can I make them useful?