from machine import UART
uart = UART(0, baudrate=9600)
uart.write("Hello, Bluetooth!")
# Read data from Bluetooth
while True:
if uart.any():
data = uart.readline()
print("Received:", data)
from machine import UART
uart = UART(0, baudrate=9600)
uart.write("Hello, Bluetooth!")
# Read data from Bluetooth
while True:
if uart.any():
data = uart.readline()
print("Received:", data)