@@ -43,7 +43,7 @@ constexpr size_t GETTEMPREFRESH = 5;
4343 * The name of this device (as defined in the AWS IOT console).
4444 * Also used to set the hostname on the network
4545 */
46- # define DEVICE_NAME " Pv router ESP32"
46+ constexpr const char * DEVICE_NAME = " Pv router ESP32" ;
4747
4848/* *
4949 * ADC input pin that is used to read out the CT sensor
@@ -142,7 +142,7 @@ constexpr size_t COMPENSATION = 100; /// % d'asservissement pour l'envoie de pu
142142 * Syncing time with an NTP server
143143 */
144144#define NTP_TIME_SYNC_ENABLED true
145- # define NTP_SERVER " europe.pool.ntp.org"
145+ constexpr const char * NTP_SERVER = " europe.pool.ntp.org" ;
146146constexpr size_t NTP_OFFSET_SECONDS = 3600 ;
147147constexpr size_t NTP_UPDATE_INTERVAL_MS = 3600000 ; // / synch de l'heure toute les heures
148148
@@ -156,16 +156,17 @@ constexpr size_t NTP_UPDATE_INTERVAL_MS = 3600000; /// synch de l'heure toute le
156156
157157#define RELEASE " Version 20250611"
158158constexpr const int FS_RELEASE = 20250324 ;
159+ constexpr const char * FS_UPDATE = " <br>!! FS pas à jour !!" ; // / paramettre FS pas à jour
159160
160161#ifdef LIGHT_FIRMWARE
161162 #define VERSION " Light " RELEASE
162163#else
163- # define VERSION RELEASE
164+ constexpr const char * VERSION = RELEASE ;
164165#endif
165166
166- # define EnvoyJ " /auth/check_jwt"
167- # define EnvoyR " /api/v1/production"
168- # define EnvoyS " /production.json"
167+ constexpr const char * EnvoyJ = " /auth/check_jwt" ;
168+ constexpr const char * EnvoyR = " /api/v1/production" ;
169+ constexpr const char * EnvoyS = " /production.json" ;
169170
170171bool AP = true ;
171172
0 commit comments