#!/bin/zsh
local BOBBYCAR=30:AE:A4:15:24:72
+local RFDEV=/dev/rfcomm1
+sudo bluetoothctl <<< "disconnect $BOBBYCAR"
+sleep 5
sudo bluetoothctl <<< "connect $BOBBYCAR"
+sudo bluetoothctl <<< "trust $BOBBYCAR"
+sleep 8
+sudo rfcomm bind $RFDEV $BOBBYCAR 1
sleep 3
-sudo rfcomm bind /dev/rfcomm1 $BOBBYCAR 1
-sleep 3
-./cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance > /dev/rfcomm1
\ No newline at end of file
+./cpp/openCVnaiveObstacleAvoidance/openCVnaiveObstacleAvoidance > $RFDEV