rodneybakiskan / ps5-esp32

Use a ps5 controller with an esp32
104 stars 10 forks source link

Pairing routine help #14

Closed rdavies02 closed 1 year ago

rdavies02 commented 1 year ago

Is there a way to put the ps5 controller in pairing mode and have it connect to the esp with this library?

I want to use multiple different controllers with a single esp (but not all at the same time) and am investigating a more efficient method of pairing without having to go the "phone route".

I am about to look into using the esp_gap_bt_api.h but I have no idea where in the code to put the function calls

any help would be much appreciated :)

rodneybakiskan commented 1 year ago

I have never tried to use multiple ps5 controllers.

With that being said, you could try calling ps5.begin("mac address of target controller") during runtime whenever you want to switch to a different controller (I have never tested this). You would still need to determine the mac address of each controller though.

rdavies02 commented 1 year ago

Turns out I wasn't using an updated version of the library :P thanks for the help though.

We were able to create a pairing routine