-->
Page 1 of 4

Using ESP specific functions

PostPosted: Mon May 18, 2015 5:59 am
by JohnPap70
Hi!

I am playing with the ESP8266 and the Arduino IDE and I want to use some ESP specific libraries... like ESP.getChipId() for example. But for every single one I am getting the "'ESP' was not declared in this scope" error!

How I can solve this one? What I have to define in the include section?

Re: Using ESP specific functions

PostPosted: Mon May 18, 2015 9:27 am
by tontito
#include <ESP.h>

void setup()
{
Serial.begin(115200);
Serial.println(ESP.getChipId());
}

void loop
{
}

Re: Using ESP specific functions

PostPosted: Mon May 18, 2015 11:16 am
by JohnPap70
Thanks for the answer tontito!

The problem now is that I am getting a "ESP.h: No such file or directory" error!

I've made a search on my computer in order to point to that direction but with no luck! Do I have to install a library into the Arduino IDE?

Re: Using ESP specific functions

PostPosted: Mon May 18, 2015 11:55 am
by martinayotte
it is "Esp.h" (case sensitive on Linux)