Part Number: CC2650EM-7ID-RD
Tool/software: TI-RTOS
Hello,
I've setup two SmartRF06, one in central mode, the other in peripheral mode. I have created 4 custom services and was able to connect the central to the peripheral. If connected, button UP will alternate sample read/write requests.
The responses are:
- read: 0
- write: error 3
In peripheral the characteristics are set read only. My problem is, I have no clue which chara is tried to read.
So if this is a read/write request, how do I perform the actual read/write of a characteristics? And at which point have I to set the UUID?
note:
This is the request function I used:
bStatus_t GATT_ReadCharValue(uint16 connHandle, attReadReq_t *pReq,
uint8 taskId)
{
return gattRequest(connHandle, (attMsg_t *)pReq, taskId, ATT_READ_REQ);
}
bStatus_t GATT_WriteCharValue(uint16 connHandle, attWriteReq_t *pReq,
uint8 taskId)
{
return gattRequest(connHandle, (attMsg_t *)pReq, taskId, ATT_WRITE_REQ);
}