• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

NTP server change

Q&A Forum › Category: ESP32 › NTP server change
0 Vote Up Vote Down
lubond asked 4 months ago

Don’t have an idea how to change the ntp server while the program is running? 

Question Tags: NTP Client
2 Answers
0 Vote Up Vote Down
lubond answered 4 months ago

Sorry, I already found out:
Just call configTime () again, with a new parameters (new NTP server name):

char* new_ntpServer = "europe.pool.ntp.org";
const long  gmtOffset_sec = 0;
const int daylightOffset_sec = 0;
configTime(gmtOffset_sec, daylightOffset_sec, new_ntpServer);
0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Great!
I’m glad you found the solution.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020
  • [eBook Updated] Download Build ESP32-CAM Projects using Arduino IDE (version 1.1) August 31, 2020

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2021 · RandomNerdTutorials.com · All Rights Reserved