You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arduino Sketches using the PS4_Controller library compile ok with ESP32 version 3.1.3. When using 3.2.0 the compilation process generates errors while compiling the library.
Sketch
// based on Examples > PS4Controller > PS4ReceiveData.ino
#include<PS4Controller.h>voidsetup() {
Serial.begin(115200);
PS4.begin("11:22:33:AA:BB:CC"); // <-- explicitly setting a custom MAC
Serial.println("Ready.");
}
voidloop() {
// Below has all accessible outputs from the controllerif (PS4.isConnected()) {
if (PS4.Right()) Serial.println("Right Button");
// etc...
}
}
Debug Message
c:\Users\<user>\Documents\Arduino\libraries\PS4Controller\src\ps4.c: In function 'ps4Deinit':
c:\Users\<user>\Documents\Arduino\libraries\PS4Controller\src\ps4.c:59:5: error: implicit declaration of function 'spp_deinit'; did you mean 'sppInit'? [-Wimplicit-function-declaration]
59 | spp_deinit();
| ^~~~~~~~~~
| sppInit
c:\Users\<user>\Documents\Arduino\libraries\PS4Controller\src\ps4.c: In function 'ps4SetBluetoothMacAddress':
c:\Users\<user>\Documents\Arduino\libraries\PS4Controller\src\ps4.c:244:3: error: implicit declaration of function 'esp_base_mac_addr_set' [-Wimplicit-function-declaration]
244 | esp_base_mac_addr_set(baseMac);
| ^~~~~~~~~~~~~~~~~~~~~
exit status 1
Compilation error: exit status 1
This is not connected to Arduino, but rather changes in APIs in ESP-IDF v5.4. External libraries that use ESP-IDF APIs would need to be updated in order to continue to function.
Board
AI Thinker ESP32-CAM
Device Description
ESP32-S
Hardware Configuration
Version
v3.2.0
IDE Name
Arduino 3.2.6
Operating System
Windows 10
Flash frequency
PSRAM enabled
yes
Upload speed
Description
Arduino Sketches using the PS4_Controller library compile ok with ESP32 version 3.1.3. When using 3.2.0 the compilation process generates errors while compiling the library.
Sketch
Debug Message
Other Steps to Reproduce
see also discussion here: https://forum.arduino.cc/t/compilar-library-ps4-controler/1373660
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: