Send Command from Bluetooth Serial Controller Android App
Posted: Fri Aug 21, 2015 10:22 am
I have successfuly connect my HC-05 bluetooth module to pyboard via UART(6). I also have tried to connect and send serial data from computer.
Now I currently trying to receive data from Bluetooth Serial Controller Android app to pyboard. The app can connect to bluetooth module and I try to send character '1' to pyboard, but there is no response. This is my program:
Is my code wrong or I've done wrong way?
Now I currently trying to receive data from Bluetooth Serial Controller Android app to pyboard. The app can connect to bluetooth module and I try to send character '1' to pyboard, but there is no response. This is my program:
Code: Select all
from pyb import UART
uart = UART(6, 9600)
print(uart.read())
if uart.read():
pyb.LED(3).on()
else:
pyb.LED(3).off()