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
No hardware, directly connected to Mac for power and flashing.
Hardware Configuration
No hardware, directly connected to Mac for power and flashing.
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
macOS Sonoma v14.5 (23F79)
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
I'm not able to use the setPin parameter. I have tried connecting the same ELM327 adapter using an android tablet and it works with the pin code "1234". I have tried running the code without the setPin parameter and it is not able to connect to the adapter.
I am trying to use the ELMduino library for the project, but the error comes from the ESP32 board installation according to the path displayed in the console.
/private/var/folders/fm/2sf3tvf92vxcwskbwrwpjpyr0000gn/T/.arduinoIDE-unsaved202463-67124-5xxjv0.o4u6/sketch_jul3a/sketch_jul3a.ino: In function 'void setup()':
/private/var/folders/fm/2sf3tvf92vxcwskbwrwpjpyr0000gn/T/.arduinoIDE-unsaved202463-67124-5xxjv0.o4u6/sketch_jul3a/sketch_jul3a.ino:24:12: error: 'class BluetoothSerial' has no member named 'setPin'
24 | ELM_PORT.setPin("1234");
| ^~~~~~
exit status 1
Compilation error: 'class BluetoothSerial' has no member named 'setPin'
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
I confirm I have checked existing issues, online documentation and Troubleshooting guide.
The text was updated successfully, but these errors were encountered:
Hi, I have the same problem but I found a solution below:
Insert
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run make menuconfig to and enable it
#endif
#if !defined(CONFIG_BT_SPP_ENABLED)
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
#endif
#define BT_DISCOVER_TIME 10000
esp_spp_sec_t sec_mask = ESP_SPP_SEC_NONE; // or ESP_SPP_SEC_ENCRYPT|ESP_SPP_SEC_AUTHENTICATE to request pincode confirmation
esp_spp_role_t role = ESP_SPP_ROLE_SLAVE; // or ESP_SPP_ROLE_MASTER
uint8_t address[6] = {0x00, 0x10, 0xCC, 0x4F, 0x36, 0x03};
Insert in void setup()
if (!ELM_PORT.connect(address, sec_mask, role))
Board
ESP32-D0WDQ5
Device Description
No hardware, directly connected to Mac for power and flashing.
Hardware Configuration
No hardware, directly connected to Mac for power and flashing.
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
macOS Sonoma v14.5 (23F79)
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
I'm not able to use the setPin parameter. I have tried connecting the same ELM327 adapter using an android tablet and it works with the pin code "1234". I have tried running the code without the setPin parameter and it is not able to connect to the adapter.
I am trying to use the ELMduino library for the project, but the error comes from the ESP32 board installation according to the path displayed in the console.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: