From f3e327af4dd10a72d6c7f84f5179ee71606044c0 Mon Sep 17 00:00:00 2001
From: francois <francois@clever.amilab.irit.fr>
Date: Mon, 4 Mar 2024 13:23:52 +0100
Subject: [PATCH] update

---
 ChangeLog.txt                          | 9 +++++++--
 neosensor/libraries/boards/neosensor.h | 2 +-
 neosensor/neosensor.ino                | 7 ++++---
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/ChangeLog.txt b/ChangeLog.txt
index 324ccb7c..ecc6c4d1 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -4,6 +4,8 @@
 #   devices BUT not set as globally available for firmware upgrades
 # (c) neOCampus / F.Thiebolt Université Toulouse3, Laboratoire IRIT
 
+=== TODO ===
+- retrieve NTP server name from DHCP answer and activate it !
 
 === Upcoming release / feature-calibration
 The main goal is to make use of a BLE enabled ambiant sensor to provide our
@@ -20,8 +22,11 @@ Note 'validation mode': ensure to already have the whole neOSensor configuration
     Roughly seaking, 'validation' mode is just about displaying the 'sharedRoot' json on serial link
     The 'sharedRoot' structure holds all of the sensors values our neOSensor features.
 
-=== Release 240301 for esp32 only (Arduino Core ESP32 2.0.14)
-We kept changed the three defaults NTP servers as global ones.
+=== Release 240304 for both esp32 and esp8266 (Arduino Core ESP32 2.0.14 and
+esp8266 3.1.2))
+As usual, three NTP servers supported.
+[WorkAround] our University forced us to remove DNS resolution of the NTP
+server of our lab --> we set it's IP address
 We kept the ability to fetch ONE NTP server from DHCP answer.
 
 
diff --git a/neosensor/libraries/boards/neosensor.h b/neosensor/libraries/boards/neosensor.h
index e5a1a0d8..fe0fe669 100644
--- a/neosensor/libraries/boards/neosensor.h
+++ b/neosensor/libraries/boards/neosensor.h
@@ -44,7 +44,7 @@
  */
 #define BOARD_NAME          "neOSensor"
 #define BOARD_REVISION      1.2
-#define BOARD_FWREV         240301          // Firmware revision <year><month><day> in 2 digits each
+#define BOARD_FWREV         240304          // Firmware revision <year><month><day> in 2 digits each
 
 
 
diff --git a/neosensor/neosensor.ino b/neosensor/neosensor.ino
index f063bd51..cf6939e9 100644
--- a/neosensor/neosensor.ino
+++ b/neosensor/neosensor.ino
@@ -152,10 +152,11 @@
  *  and vice-versa ... hence leading to numerous DNS failures !
  */
 #define NTP_DEFAULT_SERVER1       "pool.ntp.org"      // DNS location aware
-#define NTP_DEFAULT_SERVER2       "time.nist.gov"     // DNS location aware
-#define NTP_DEFAULT_SERVER3       "0.fr.pool.ntp.org" // DNS location aware
+//#define NTP_DEFAULT_SERVER2       "time.nist.gov"     // DNS location aware
+#define NTP_DEFAULT_SERVER2       "141.115.4.2"       // [feb.24] to avoid 'ntp.irit.fr' DNS resolution that fails at UT3
 //#define NTP_DEFAULT_SERVER2       "ntp.irit.fr"       // UT3-IRIT specific
-//#define NTP_DEFAULT_SERVER3       "ntp.univ-tlse3.fr" // UT3 specific
+//#define NTP_DEFAULT_SERVER3       "0.fr.pool.ntp.org" // DNS location aware
+#define NTP_DEFAULT_SERVER3       "ntp.univ-tlse3.fr" // UT3 specific
 
 
 /*
-- 
GitLab