Bluetooth Connect esp32 to odbd2 problem

hello everyone, i'm trying to connect esp32 titigo to odb2 using elmduino library..

i tried some sketch to allow the bluetooth connection, but nothing seems to work.

i tried wiht odbII name and pin 1234 with the elmduino examples but nothing works, so i have found this sketch here on the forum to try connection via odb2 macaddress but i receive this compiling error

#include "BluetoothSerial.h"
#include "ELMduino.h"


BluetoothSerial SerialBT;
#define ELM_PORT   SerialBT
#define DEBUG_PORT Serial

//String MACadd = "DC:0D:30:48:8D:60";                         //enter the ELM327 MAC address
uint8_t address[6]  = {0xEF, 0x30, 0x0D, 0x58, 0x3D, 0xE6};  //enter the ELM327 MAC address after the 0x

ELM327 myELM327;


uint32_t rpm = 0;


void setup()
{
#if LED_BUILTIN
  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, LOW);
#endif

  DEBUG_PORT.begin(115200);
  SerialBT.setPin("1234");
  ELM_PORT.begin("ArduHUD", true);

  if (!ELM_PORT.connect(address))            //"OBDII" replaced by "address"
  {
    DEBUG_PORT.println("Couldn't connect to OBD scanner - Phase 1");
    while (1);
  }

  if (!myELM327.begin(ELM_PORT))
  {
    Serial.println("Couldn't connect to OBD scanner - Phase 2");
    while (1);
  }

  Serial.println("Connected to ELM327");
}


void loop()
{
  float tempRPM = myELM327.rpm();

  if (myELM327.status == ELM_SUCCESS)
  {
    rpm = (uint32_t)tempRPM;
    Serial.print("RPM: "); Serial.println(rpm);
  }
  else
  {
    printError();
  }
}


void printError()
{
  Serial.print("Received: ");
  for (byte i = 0; i < myELM327.recBytes; i++)
    Serial.write(myELM327.payload[i]);
  Serial.println();

  if (myELM327.status == ELM_SUCCESS)
    Serial.println(F("\tELM_SUCCESS"));
  else if (myELM327.status == ELM_NO_RESPONSE)
    Serial.println(F("\tERROR: ELM_NO_RESPONSE"));
  else if (myELM327.status == ELM_BUFFER_OVERFLOW)
    Serial.println(F("\tERROR: ELM_BUFFER_OVERFLOW"));
  else if (myELM327.status == ELM_UNABLE_TO_CONNECT)
    Serial.println(F("\tERROR: ELM_UNABLE_TO_CONNECT"));
  else if (myELM327.status == ELM_NO_DATA)
    Serial.println(F("\tERROR: ELM_NO_DATA"));
  else if (myELM327.status == ELM_STOPPED)
    Serial.println(F("\tERROR: ELM_STOPPED"));
  else if (myELM327.status == ELM_TIMEOUT)
    Serial.println(F("\tERROR: ELM_TIMEOUT"));
  else if (myELM327.status == ELM_TIMEOUT)
    Serial.println(F("\tERROR: ELM_GENERAL_ERROR"));

  delay(100);
}```

error 

/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino: In function 'void loop()':
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:49:16: error: 'class ELM327' has no member named 'status'
if (myELM327.status == ELM_SUCCESS)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino: In function 'void printError()':
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:68:16: error: 'class ELM327' has no member named 'status'
if (myELM327.status == ELM_SUCCESS)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:70:21: error: 'class ELM327' has no member named 'status'
else if (myELM327.status == ELM_NO_RESPONSE)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:72:21: error: 'class ELM327' has no member named 'status'
else if (myELM327.status == ELM_BUFFER_OVERFLOW)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:74:21: error: 'class ELM327' has no member named 'status'
else if (myELM327.status == ELM_UNABLE_TO_CONNECT)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:76:21: error: 'class ELM327' has no member named 'status'
else if (myELM327.status == ELM_NO_DATA)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:78:21: error: 'class ELM327' has no member named 'status'
else if (myELM327.status == ELM_STOPPED)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:80:21: error: 'class ELM327' has no member named 'status'
else if (myELM327.status == ELM_TIMEOUT)
^~~~~~
/Users/Gianlu/Documents/Arduino/libraries/ELMDuino/examples/ESP32_Bluetooth_Serial/ESP32_Bluetooth_Serial.ino:82:21: error: 'class ELM327' has no member named 'status'
else if (myELM327.status == ELM_TIMEOUT)
^~~~~~

exit status 1

Compilation error: 'class ELM327' has no member named 'status'

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.