nisargjhaveri / WirelessAndroidAutoDongle

Use Wireless Android Auto with a car that supports only wired Android Auto using a Raspberry Pi.
MIT License
320 stars 43 forks source link

Get the BT ALIAS from env #80

Closed hkfuertes closed 2 months ago

hkfuertes commented 3 months ago

Simple PR that moves the bluetooth adapter alias from variable inside code to get it from env variable. The default value if the var is not set keeps the same.

# Export the variable to use the BT alias.
export ADAPTER_ALIAS=NewBtAlias
nisargjhaveri commented 3 months ago

With #72, we have to use special bluetooth name in case of dongle mode. Let's wait for that one and we can see how we can customise that works for both dongle more and non-dongle modes?

hkfuertes commented 3 months ago

With #72, we have to use special bluetooth name in case of dongle mode. Let's wait for that one and we can see how we can customise that works for both dongle more and non-dongle modes?

I saw the PR and I thought it did not matter... for sure we can wait :) anyway, on the latest commit added a bool to test if we are in dongle mode or not...

nisargjhaveri commented 3 months ago

In dongle mode, the BT name needs to be AndroidAuto-* and needs to be different when not in dongle mode.

Should we just specify a suffix that can change based on the config? Or can we simply set the name based on some MAC address always? Would that work for your scenarios?

hkfuertes commented 2 months ago

I will close this PR, and propose a new Alias change that I know works.