{"action":"created","issue":{"url":"https://api.github.com/repos/PaulStoffregen/Time/issues/35","labels_url":"https://api.github.com/repos/PaulStoffregen/Time/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/PaulStoffregen/Time/issues/35/comments","events_url":"https://api.github.com/repos/PaulStoffregen/Time/issues/35/events","html_url":"https://github.com/PaulStoffregen/Time/issues/35","id":128334247,"number":35,"title":"Strange problem using ESP8266 sample","user":{"login":"lunanigra","id":2649466,"avatar_url":"https://avatars.githubusercontent.com/u/2649466?v=3","gravatar_id":"","url":"https://api.github.com/users/lunanigra","html_url":"https://github.com/lunanigra","followers_url":"https://api.github.com/users/lunanigra/followers","following_url":"https://api.github.com/users/lunanigra/following{/other_user}","gists_url":"https://api.github.com/users/lunanigra/gists{/gist_id}","starred_url":"https://api.github.com/users/lunanigra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunanigra/subscriptions","organizations_url":"https://api.github.com/users/lunanigra/orgs","repos_url":"https://api.github.com/users/lunanigra/repos","events_url":"https://api.github.com/users/lunanigra/events{/privacy}","received_events_url":"https://api.github.com/users/lunanigra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-23T15:34:03Z","updated_at":"2016-01-23T18:05:04Z","closed_at":"2016-01-23T17:06:38Z","body":"Hello, I'm trying to use your sample sketch with an ESP8266 chip. However even when using your code exactly as it is I'm running on an error...\r\n\r\n```\r\n/Users/me/Documents/Arduino/ESP8266_NTP/ESP8266_NTP.ino: In function 'void setup()':\r\nESP8266_NTP:54: error: 'getNtpTime' was not declared in this scope\r\n   setSyncProvider(getNtpTime);\r\n                   ^\r\n/Users/me/Documents/Arduino/ESP8266_NTP/ESP8266_NTP.ino: In function 'void loop()':\r\nESP8266_NTP:64: error: 'digitalClockDisplay' was not declared in this scope\r\n       digitalClockDisplay();  \r\n                           ^\r\n/Users/me/Documents/Arduino/ESP8266_NTP/ESP8266_NTP.ino: In function 'void digitalClockDisplay()':\r\nESP8266_NTP:72: error: 'printDigits' was not declared in this scope\r\n   printDigits(minute());\r\n                       ^\r\n/Users/me/Documents/Arduino/ESP8266_NTP/ESP8266_NTP.ino: In function 'time_t getNtpTime()':\r\nESP8266_NTP:102: error: 'sendNTPpacket' was not declared in this scope\r\n   sendNTPpacket(timeServer);\r\n                           ^\r\nexit status 1\r\n'getNtpTime' was not declared in this scope\r\n```\r\n\r\nYour code looks totally fine! So, it's quite strange... Compiling the original Arduino sketch (for a real Arduino controller) works fine as well... Then I changed the order of your functions (e.g. putting setup/loop) to the end. After that no compiler issue.\r\n\r\nAny idea what is going wrong? I assume that the sketch works for you. Making it even stranger...\r\nOr is there any flag handling function ordering?\r\n\r\nThanks, JC\r\n"},"comment":{"url":"https://api.github.com/repos/PaulStoffregen/Time/issues/comments/174209088","html_url":"https://github.com/PaulStoffregen/Time/issues/35#issuecomment-174209088","issue_url":"https://api.github.com/repos/PaulStoffregen/Time/issues/35","id":174209088,"user":{"login":"lunanigra","id":2649466,"avatar_url":"https://avatars.githubusercontent.com/u/2649466?v=3","gravatar_id":"","url":"https://api.github.com/users/lunanigra","html_url":"https://github.com/lunanigra","followers_url":"https://api.github.com/users/lunanigra/followers","following_url":"https://api.github.com/users/lunanigra/following{/other_user}","gists_url":"https://api.github.com/users/lunanigra/gists{/gist_id}","starred_url":"https://api.github.com/users/lunanigra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunanigra/subscriptions","organizations_url":"https://api.github.com/users/lunanigra/orgs","repos_url":"https://api.github.com/users/lunanigra/repos","events_url":"https://api.github.com/users/lunanigra/events{/privacy}","received_events_url":"https://api.github.com/users/lunanigra/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T18:05:04Z","updated_at":"2016-01-23T18:05:04Z","body":"Thanks for your help! Works :-)\r\n"}}