Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By martinayotte
#25690 Yes, I understand that you are using this code, but my suggestion was to try out the plain NTPClient simply to confirm if it is working or not. If it is working, then other piece of code need to be debug, maybe there is a glitch in it.
User avatar
By jimbob321
#25698 do you mean the ntp in the time library ? that wont compile something with the ethernet library
I tried on a second board
output

..........Enter ssid name: *******

Enter pass phrase:
********

Attempting to Connect...WiFi connected
IP address:
192.168.1.111
No NTP Response :-(
User avatar
By martinayotte
#25701 No, the NTPClient part of the ArduinoIDE, ie : libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino
If this one is working for you, then we can spend more time on the other.
User avatar
By jimbob321
#25707 this is the error from arduino 1.6.5 Time_NTP.pde

Code: Select allArduino: 1.6.5 (Windows 7), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200"

sketch_aug11b:7: error: variable or field 'sendNTPpacket' declared void
sketch_aug11b:7: error: 'IPAddress' was not declared in this scope
sketch_aug11b:7: error: 'address' was not declared in this scope
sketch_aug11b:1: error: expected constructor, destructor, or type conversion before '.' token
variable or field 'sendNTPpacket' declared void

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.