I created a sketch where I use bluetooth to communicate with external apps and it happens in some cases that the execution of the sketch stops if I insert the printf () function;
Faccio un esempio:
Code: Select all
if(param->write.value[2] == 8){
valore0 = param->write.value[0];
valore1 = param->write.value[1];
printf("value1= %d\n",param->write.value[1]);
}
If instead I insert the second printf () function:
Code: Select all
if(param->write.value[2] == 8){
value0 = param->write.value[0];
printf("value0= %d\n",param->write.value[0]);
value1 = param->write.value[1];
printf("value1= %d\n",param->write.value[1]);
}
I hope I was clear.
Thank you