dear expert.
i have cc2540 dk and would like it to continuosly send data to Peripheral device. so I modified simpleBLECentral.c. here is the code.
if ( simpleBLEDoWrite ) {
int i = 0;
for (i = 0 ; i< 10 ; i++){
// Do a write attWriteReq_t req; req.handle = simpleBLECharHdl; req.len = 1; req.value[0] = 7; req.sig = 0; req.cmd = 0; status = GATT_WriteCharValue( simpleBLEConnHandle, &req, simpleBLETaskId );
} }
I think that if i joystick up, then the central device will send data 10 times and expect to confirm this data in Peripheral device.
but, it's not work...
Any help would be great.
yeol