Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JAICHANGPARK opened this issue Sep 10, 2018 · 0 comments
Open

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

JAICHANGPARK opened this issue Sep 10, 2018 · 0 comments

Comments

@JAICHANGPARK
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant