arduino / ArduinoCore-arc32

GNU Lesser General Public License v2.1
329 stars 284 forks source link

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

Open JAICHANGPARK opened 6 years ago

JAICHANGPARK commented 6 years ago

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);
}
}

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

How to solved this problem?

regards