ArduinoCore-arc32 icon indicating copy to clipboard operation
ArduinoCore-arc32 copied to clipboard

[Urgent][Stuck Problem] BLE setValue in callback function!

Open JAICHANGPARK opened this issue 7 years ago • 0 comments

Hi There

Now , I'm using curie nano board my ble program is using callback function.


void dataSyncCharCharacteristicWritten(BLEDevice central, BLECharacteristic characteristic) {
// 1. read external serial flash 
//  code here
// 2. save data in buffer from serial flash memory  
// code here 
// 3. nofity and send to application buff Value 
for (int i = 0; i < register_index; i++) {
    syncChar.setValue(syncBuff[i], SAVE_UNIT_STEP);
}
}
  • where syncChar
BLECharacteristic syncChar("FFF2", BLERead | BLEWrite | BLENotify , 20);

My problem code parts is number 3 Cuire board is stuck in for statement

How to solved this problem?

regards

JAICHANGPARK avatar Sep 10 '18 12:09 JAICHANGPARK