aed3 / PS4-esp32

Use a ps4 controller with an esp32
342 stars 106 forks source link

Automatic pair #1

Closed BogdanTheGeek closed 4 years ago

BogdanTheGeek commented 4 years ago

The ps4 controller can pair to android phones without changing the MAC address of the phone as supposed to the way the ps3 controller works. This means that there should be no need to read the MAC address stored on the ps4 controller. Could we implement an automatic pairing process where the esp32 scans for the Bluetooth id of the ps4 controller and pairs to it?

DerfJagged commented 4 years ago

The DS4 advertises it's MAC address along with the name "Wireless Controller" (and other unique markers like vendor ID). It should be possible to latch on to this and auto pair with the ESP32, as I did this with a Raspberry Pi in my RetroConnect repo.

Vendor=054c Product=05c4