This a great example of how Bluetooth (BT) reads incoming chars. This program constantly check if a char has been sent over BT and then turns on or off a digital output on the K64F board. We used MIT App Inventor to download an app to a android phone. This app would connect to our HC06 BT module on the K64F. The app would send chars when certain buttons were pressed. The K64F would then receive them and take appropriate action. Our digital output would send signal to relays, that's why you see variables called relay1,2,3... The relays then allowed power to got to a power strip.

Dependencies:   mbed

Committer:
jwhammel
Date:
Mon Apr 29 00:01:55 2019 +0000
Revision:
1:9ba4f4c2b414
Parent:
0:2fb6b3ddfcbd
This is a great example of how Bluetooth (BT) works.  The program is constantly checking to see if a char has been sent over BT signal. This used the K64F and HC06.  We used MIT App Inventor to make a program that will connect to our HC06 BT module.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
santiiago210 0:2fb6b3ddfcbd 1 https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc