Its my very first post on this platform.If I do any mistakes in posting my query plz forgive me.
I am communicating a famous String "Hello World!!!" between Raspberry pi's builtin Bluetooth and HC05 which is connected to Arduino.
Communication has been done successfully.
But I want to achieve the following
- Whenever I start my pi the Bluetooth should automatically connected.So because I don't wanna do it again and again to connect them manually
My python code is following.
Code: Select all
import serial import time port = serial.Serial("/dev/rfcomm0",baudrate=38400) while True: port.write(b'Hello World!!!') print('sent') time.sleep(1)