- pybluez
- paho-mqtt
For bluetooth passcode authentication on linux (with raspi) the following steps are needed:
- Create a file named bluetooth.cfg on /root with the following contents in it
BT_MAC_ADDRESS BT_PASSWORD
For the OBD reader ELM 327 the BT_PASSWORD is 1234 - Create the following script
sudo hciconfig hci0 sspmode 0
sudo bt-agent -c NoInputNoOutput -p /root/bluetooth.cfg
- Run the script on bg with script.sh &
- Run the program main and bt authentication should work seamlessly once all libraries are loaded into pip
python3 main.py
Currently the program offers no support for OBDII disconnections, run the program once the OBD reader is powered on and working.
- Add support for bluetooth retry until successful connection
- Add support for configurable PID reading and expand support for more useful PID
- Add support for seamless Ubidots connection, currently there needs to be a file named dataStoring.py with a constant called 'UBI_USER'
- Add local storage of values, as Ubidots free tier is limited to 4000 request per user per day