-->
Page 2 of 3

Re: NTP, ESP8266 Time-Synced, Data Logging and Web Server

PostPosted: Sat May 05, 2018 8:50 am
by Sirquil
It really does help when the program is broken up into separate functional sections, each with it's own tab/file.


Could you give an example, please?

William

Re: NTP, ESP8266 Time-Synced, Data Logging and Web Server

PostPosted: Sat May 05, 2018 9:22 am
by Pablo2048
Just split main .ino file into many smaller - for example separate handlers for your webserver into webserver.ino - when Arduino compile project it just mix all of .ino files in project directory into one main file (and extract methods, global variables, ...).

Re: NTP, ESP8266 Time-Synced, Data Logging and Web Server

PostPosted: Sat May 05, 2018 5:48 pm
by rudy
Sirquil wrote:
It really does help when the program is broken up into separate functional sections, each with it's own tab/file.


Could you give an example, please?


https://www.youtube.com/watch?v=dSAb3LZBHp0

Re: NTP, ESP8266 Time-Synced, Data Logging and Web Server

PostPosted: Sun May 06, 2018 3:59 pm
by Sirquil
Thank you rudy for the video link; worked perfectly.

"Arduino IDE" tabbed version of "NTP_Time-synced_Web_Interface"

William