PS4-esp32 icon indicating copy to clipboard operation
PS4-esp32 copied to clipboard

How can I disconnect the PS4 controller?

Open vohai2003 opened this issue 4 years ago • 4 comments

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

vohai2003 avatar Feb 12 '22 16:02 vohai2003

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.

changfrancis avatar May 01 '22 07:05 changfrancis

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.

vohai2003 avatar May 19 '22 06:05 vohai2003

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

Zwer2k avatar Jul 08 '22 20:07 Zwer2k

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

ullMarksin avatar Sep 06 '22 16:09 ullMarksin