We are attempting to connect the bluetooth module to a Raspberry Pi using Python rather than entering terminal commands directly. When running the below code the connection is not made between the HC-05 module and the Raspberry pi. We have tried Popen and run functions from the subprocess module.
![Bluetooth adapter for raspberry pi Bluetooth adapter for raspberry pi](/uploads/1/2/5/5/125505424/521757373.jpg)
We are attempting to connect the bluetooth module to a Raspberry Pi using Python rather than entering terminal commands directly. When running the below code the connection is not made between the HC-05 module and the Raspberry pi.