-->
Page 1 of 2

How to install ESP8266 Cores Esp.cpp

PostPosted: Wed Mar 21, 2018 8:41 pm
by Chadwixk
I found some code that states it requires this class, but I am unsure of how to install this in the Arduino IDE. I've read about this topic here, but the issue is Esp.cpp is just a single file, not a full library.

Sorry, I am not the greatest at these type of environment setups in Arduino, but what am I missing. How can I install this?

Re: How to install ESP8266 Cores Esp.cpp

PostPosted: Thu Mar 22, 2018 2:11 am
by schufti
just try

#include "Esp.h"

Re: How to install ESP8266 Cores Esp.cpp

PostPosted: Fri Mar 23, 2018 6:41 pm
by Chadwixk
I still get this error on
'class EspClass' has no member named 'getCoreVersion'

Here's my "includes":
Code: Select all#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>        // Include the mDNS library
#include <FS.h> // FOR SPIFFS
#include <Esp.h>
#include <math.h>
#include <ctype.h> // for isNumber check


And the code it is failing on.
Code: Select all  Serial.print("    Core version: "); Serial.println(ESP.getCoreVersion());
  Serial.print("    SDK version: "); Serial.println(ESP.getSdkVersion());
  Serial.print("    Boot version: "); Serial.println(ESP.getBootVersion());
  Serial.print("    Boot mode: "); Serial.println(ESP.getBootMode());

Re: How to install ESP8266 Cores Esp.cpp

PostPosted: Sat Mar 24, 2018 4:42 am
by schufti
compiles fine for me ...