User Tools

Site Tools


basicotantpserverdebugwebserial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
basicotantpserverdebugwebserial [2025/03/01 00:13] – jwanbasicotantpserverdebugwebserial [2025/10/10 10:15] (current) – external edit 127.0.0.1
Line 46: Line 46:
 // Time settings // Time settings
 WiFiUDP ntpUDP; WiFiUDP ntpUDP;
-NTPClient timeClient(ntpUDP, "ntp.pagasa.dost.gov.ph", 0, 60000); // Update every 60 seconds+NTPClient timeClient(ntpUDP, "ntp.pagasa.dost.gov.ph", 28800, 60000); // Update every 60 seconds
  
 // Create AsyncWebServer object on port 80 // Create AsyncWebServer object on port 80
Line 85: Line 85:
      
   // Connect to WiFi   // Connect to WiFi
-  WiFi.hostname();+  WiFi.hostname(hostname);
   WiFi.begin(ssid, password);   WiFi.begin(ssid, password);
   while (WiFi.status() != WL_CONNECTED) {   while (WiFi.status() != WL_CONNECTED) {
basicotantpserverdebugwebserial.1740788003.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki