esp32-ps3
esp32-ps3 copied to clipboard
Bluetooth MAC address workaround
Hi,
Your excellent work here follows the same method of enabling the PS3 controller to be connected to the ESP32 Bluetooth (Use sixaxispair tool and write the reported address in setup) seen on most other sources. I reported an issue on your Github project regarding this method which caused problems for me but used a workaround to get past the issue.
The workaround was to run the sketch Getting the MAC Address of the ESP32 and then use the sixaxispair tool to write the address to the PS3 controller. Doing this meant I didn't need to specify any MAC address in setup, resulting in a compilation that didn't fail and I was able to carry on with my project. It also means that the controller will always be paired to that ESP32.
I think all of the PS3 controller "How-to" videos/web pages suggest using the sixaxispair tool and some even say you can change the address stored there but I didn't come across anyone suggesting that entering the MAC address of your ESP32 Bluetooth Interface would be a good idea. Is this worth an update to your Pairing the PS3 Controller: section?
Tim
https://techtutorialsx.com/2018/03/09/esp32-arduino-getting-the-bluetooth-device-address/
Hey,
Thanks for the heads up! I have just added a section to the main page of this project which describes how to get the ESP32's Bluetooth MAC address: Display Bluetooth address
It includes a snippet which is available in the newest version of this library, so please let me know how you like it!