0

Eventhough the sketch is uploaded, and the BLE Nano connected to my phone, as soon as I insert a letter (either t or h) the connection is lost. I've tried as suggested by Fjodor to insert the line bleserial.begin(9600); but still it doesn't work. Actually, I removed the line because a TA suggested me doing so when having the same problem. What should I do?

Share a link to this question (includes your user id)
| edit | | close | delete |
0

Check your code with my example below. Especially the parts in red must be there:

top part of sketch for BLE chat

At the very bottom of the loop(), there should also be this piece:

bottom part of loop

And finally, in the loop where it reads the temperature, it should look like (piece in red):

check for a t in incoming text

Share a link to this answer (includes your user id)
| edit | delete |

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.