From 1170297d2dd06c6f1d89555508aeeb5578340f73 Mon Sep 17 00:00:00 2001 From: tackelua Date: Tue, 8 Aug 2017 11:12:13 +0700 Subject: [PATCH] Fix localPort for udp connection In before version: localPort = 2390; -> example NTPClient.ino get no udp packet after sends NTP packer --- libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino b/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino index 4176c511b2..440a81a019 100644 --- a/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino +++ b/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino @@ -25,7 +25,7 @@ char ssid[] = "*************"; // your network SSID (name) char pass[] = "********"; // your network password -unsigned int localPort = 2390; // local port to listen for UDP packets +unsigned int localPort = 123; // local port to listen for UDP packets /* Don't hardwire the IP address or we won't get the benefits of the pool. * Lookup the IP address for the host name instead */