Errors with example TimeNTP_ESP8266WiFi

Status
Not open for further replies.

MarkyMarc35

New member
Hello all,

I have an esp8266-12F (http://www.electrodragon.com/product/esp-12f-esp8266-wifi-board/#prettyPhoto) and i am trying to use it on a Teensy 3.2.

Using this code, i can sent AT command to the esp and it does answer back.
Code:
void setup()
{
  delay(5000);
  Serial.begin(115200);
  Serial1.begin(115200);
}

void loop()
{
  /* send everything received from the hardware uart to usb serial & vv */
  if (Serial.available() > 0) {
    char ch = Serial.read();
    Serial1.print(ch);
  }
  if (Serial1.available() > 0) {
    char ch = Serial1.read();
    Serial.print(ch);
  }
}

When i try to use File/Examples/Time/TimeNTP_ESP8266WiFi from the Andurino 1.6.6 IDE, on compilation i get the errors

"In function 'void setup()':
TimeNTP_ESP8266WiFi:39: error: 'WiFi' was not declared in this scope
WiFi.begin(ssid, pass);"

and

"TimeNTP_ESP8266WiFi:41: error: 'WL_CONNECTED' was not declared in this scope
while (WiFi.status() != WL_CONNECTED) {"

I was able to fix the missing ESP8266wifi.h file issue but i'm at a lost for theses.

Any help would be appreciated.
 
You really need to ask this on a forum for the ESP chips.

While I maintain the Time library, I do not personally use or test with ESP. I depend on the ESP community to contribute fixes, via github. Again, an ESP forum is the place to ask, not github. When/if anyone on an ESP forum solves this problem, please ask them to submit the fix as a pull request on github. Do NOT ask for help on github... only use github to submit issue reports and fixes.
 
Status
Not open for further replies.
Back
Top