Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

How can I disconnect the PS4 controller? #41

Open
vohai2003 opened this issue Feb 12, 2022 · 4 comments
Open

How can I disconnect the PS4 controller? #41

vohai2003 opened this issue Feb 12, 2022 · 4 comments

Comments

@vohai2003
Copy link

Just curious, how can I disconnect the PS4 controller without shutting it down?

@changfrancis
Copy link

changfrancis commented May 1, 2022

I tried the same code with a clone and original PS4 controller. The library does not seems to work on my clone controller. It work perfectly on the original controller.

Witht the clone, i tried correcting "mac address", ESP32 erase method or fancy pairing method using PC and transfer the Mac address all does not work correctly. most of the time the clone controller will attempt connection with ESP32 and shutdown (<2sec). I am not a expert programmer to find out what is wrong, why it does not work with the clone version.

I hope my finding helps you guys who wanna continue using PS4 as a controller.

If anyone find any other library for a reliable controller pls let me know, I will wish to try xbox or switch controller, but i dont see much library out there.

@vohai2003
Copy link
Author

I tried the same code with a clone and original PS4 controller. The library does not seems to work on my clone controller. It work perfectly on the original controller.

Witht the clone, i tried correcting "mac address", ESP32 erase method or fancy pairing method using PC and transfer the Mac address all does not work correctly. most of the time the clone controller will attempt connection with ESP32 and shutdown (<2sec). I am not a expert programmer to find out what is wrong, why it does not work with the clone version.

I hope my finding helps you guys who wanna continue using PS4 as a controller.

If anyone find any other library for a reliable controller pls let me know, I will wish to try xbox or switch controller, but i dont see much library out there.

You may check if your code have any interrupt command. If there's any, it may shut your PS4 down after a several seconds.

@Zwer2k
Copy link

Zwer2k commented Jul 8, 2022

Same question from me. How can I disconnect the controller without restarting ESP?

@ullMarksin
Copy link

if you hold ps button for 5 sec , controller will turn off

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants