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:12] – jwanbasicotantpserverdebugwebserial [2025/10/10 10:15] (current) – external edit 127.0.0.1
Line 39: Line 39:
  
 // WiFi credentials // WiFi credentials
-const char* ssid = "PLDT24GHZ"; +const char* ssid = "SSID"; 
-const char* password = "sosiolandia"; +const char* password = "Password"; 
-const char *hostname = "IoTClock";+const char *hostname = "Hostname";
 String IPaddr; String IPaddr;
  
 // Time settings // Time settings
 WiFiUDP ntpUDP; WiFiUDP ntpUDP;
-//NTPClient timeClient(ntpUDP, "pool.ntp.org", 0, 60000); // Update every 60 seconds +NTPClient timeClient(ntpUDP, "ntp.pagasa.dost.gov.ph", 28800, 60000); // Update every 60 seconds
-NTPClient timeClient(ntpUDP, "ntp.pagasa.dost.gov.ph");+
  
 // Create AsyncWebServer object on port 80 // Create AsyncWebServer object on port 80
Line 86: 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.1740787935.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki