Freematic IDE and ESP32 OBD Kit

Discussion about software developed by Freematics, including Freematics Hub, Freematics Builder, Freematics Emulator GUI
Post Reply
Wkrasner@gmail.com
Posts: 2
Joined: Tue Mar 02, 2021 8:36 pm

Freematic IDE and ESP32 OBD Kit

Post by Wkrasner@gmail.com »

Hi

I am new to audino and freeematics. I have a Freematics OBD kit with ESP32. I am trying to load a wifi sketch so I can communicate with OBD wirelessly. Looks like it compiles without problem, but results in an "error linking:

Here is the sketch:

Code: Select all

#include "WiFi.h" // ESP32 WiFi include
#include "WiFiConfig.h" // My WiFi configuration.
 
void ConnectToWiFi()
{
 
  WiFi.mode(WIFI_STA);
  WiFi.begin(SSID, WiFiPassword);
  Serial.print("Connecting to "); Serial.println(SSID);
 
  uint8_t i = 0;
  while (WiFi.status() != WL_CONNECTED)
  {
    Serial.print('.');
    delay(500);
 
    if ((++i % 16) == 0)
    {
      Serial.println(F(" still trying to connect"));
    }
  }
 
  Serial.print(F("Connected. My IP address is: "));
  Serial.println(WiFi.localIP());
}


I have configured the WiFiConfig.h with the correct credentials
. This is the IDE response:
Build Target: ESP32 (MCU: esp32 @ 240Mhz)
Library path: hardware/arduino/esp32/libraries/WiFi/src
Referenced libraries: [WiFi]

[Sketch]
Compiling wifi.ino.cpp...

[Core]
Using pre-compiled core file

[Libraries]
Compiling library [WiFi]...
Processing hardware/arduino/esp32/libraries/WiFi/src
Compiling ETH.cpp...
Compiling WiFi.cpp...
Compiling WiFiAP.cpp...
Compiling WiFiClient.cpp...
Compiling WiFiGeneric.cpp...
Compiling WiFiMulti.cpp...
Compiling WiFiScan.cpp...
Compiling WiFiServer.cpp...
Compiling WiFiSTA.cpp...
Compiling WiFiUdp.cpp...

[Binary]
Linking all objects...

Error linking objects.

Additionally the following is my IDE basic settings:
ide_set.JPG
ide_set.JPG (35.97 KiB) Viewed 1413 times
I have alos suspended the virus software during compile

Any help would be appreciated. Thanks
Post Reply