11-09-2024, 05:33 PM
bonjour
j'ai suivie pas a pas la procédure énonce et cela ne marche pas.
je pense raté quelque chose mais je ne vois pas
lors de la compilation j'ai plein d'erreur
et il fini par me dire que croquis trop gros
quelqu'un peut m'aider svp
et merci d'avance
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void envoiVersMQTT()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:81:7: warning: unused variable 'etat' [-Wunused-variable]
81 | int etat = 0; // utilisé pour l'envoie de l'état On/Off des actions.
| ^~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void SendDataToHomeAssistant()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 10 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 11 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 10 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 11 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 12 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:20: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'String' [-Wformat=]
276 | sprintf(value, "%s,\"LTARF\":\"%s\", \"Code_Tarifaire\":%d", value, LTARF, code);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:303:8: warning: unused variable 'published' [-Wunused-variable]
303 | bool published = clientMQTT.publish(StateTopic, value);
| ^~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Server.ino: In function 'void Liste_WIFI()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Server.ino:570:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int32_t' {aka 'long int'} [-Wformat=]
570 | Serial.printf("%4d", WiFi.RSSI(i));
| ^~~~~ ~~~~~~~~~~~~
| |
| int32_t {aka long int}
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino: In function 'void LectureEnROM()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino:135:7: warning: variable 'VersionStocke' set but not used [-Wunused-but-set-variable]
135 | int VersionStocke;
| ^~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino: In function 'void ImportParametres(String)':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino:578:7: warning: unused variable 'VersionStocke' [-Wunused-variable]
578 | int VersionStocke = IntJson("VersionStocke", Conf);
| ^~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Tempo_RTE.ino: In function 'void Call_RTE_data()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Tempo_RTE.ino:18:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
18 | if ((DATEvalid) && ((LastH != Hcour) && (Hcour == 301 || Hcour == 310 || Hcour == 530 || Hcour == 560 || Hcour == 600 || Hcour == 900 || Hcour == 1150) || LastHeureRTE < 0)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void DeviceToDiscover(String, String, String, String)':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:198:19: warning: ')}}' directive writing 3 bytes into a region of size between 0 and 28 [-Wformat-overflow=]
198 | sprintf(ValTpl, "{{ value_json.%s|default(0)|round(%s)}}", VarName.c_str(), Round.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:198:10: note: 'sprintf' output between 36 and 64 bytes into a destination of size 60
198 | sprintf(ValTpl, "{{ value_json.%s|default(0)|round(%s)}}", VarName.c_str(), Round.c_str());
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:201:26: warning: '%s' directive writing up to 59 bytes into a region of size 28 [-Wformat-overflow=]
201 | sprintf(state_class, "\"state_class\":\"total_increasing\"%s,", state_class);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:201:12: note: 'sprintf' output between 34 and 93 bytes into a destination of size 60
201 | sprintf(state_class, "\"state_class\":\"total_increasing\"%s,", state_class);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:201:12: warning: 'sprintf' argument 3 overlaps destination object 'state_class' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:194:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
194 | char state_class[60];
| ^~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void SendDataToHomeAssistant()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: ',"PuissanceS_T": ' directive writing 17 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: note: assuming directive output of 4 bytes
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: note: assuming directive output of 4 bytes
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:12: note: 'sprintf' output between 218 and 2515 bytes into a destination of size 1000
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:261:20: warning: ',"Temperature": ' directive writing 16 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
261 | sprintf(value, "%s,\"Temperature\": %.1f", value, temperature);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:261:12: note: 'sprintf' output between 20 and 1328 bytes into a destination of size 1000
261 | sprintf(value, "%s,\"Temperature\": %.1f", value, temperature);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:261:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:20: warning: ',"LTARF":"' directive writing 10 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
276 | sprintf(value, "%s,\"LTARF\":\"%s\", \"Code_Tarifaire\":%d", value, LTARF, code);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:20: note: directive argument in the range [0, 19]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:12: note: 'sprintf' output 32 or more bytes (assuming 1032) into a destination of size 1000
276 | sprintf(value, "%s,\"LTARF\":\"%s\", \"Code_Tarifaire\":%d", value, LTARF, code);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:280:20: warning: ',"PactProd":' directive writing 12 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
280 | sprintf(value, "%s,\"PactProd\":%d, \"PactConso_M\":%d", value, PactProd, PactConso_M);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:280:12: note: 'sprintf' output between 31 and 1050 bytes into a destination of size 1000
280 | sprintf(value, "%s,\"PactProd\":%d, \"PactConso_M\":%d", value, PactProd, PactConso_M);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:280:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:302:18: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
302 | sprintf(value, "%s}", value);
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:302:10: note: 'sprintf' output between 2 and 1001 bytes into a destination of size 1000
302 | sprintf(value, "%s}", value);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:302:10: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:20: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
293 | sprintf(value, "%s,\"%s\":%d", value, ActType.c_str(), Ouv);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:20: note: directive argument in the range [-2147483547, 2147483647]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:12: note: 'sprintf' output between 6 and 1029 bytes into a destination of size 1000
293 | sprintf(value, "%s,\"%s\":%d", value, ActType.c_str(), Ouv);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:298:22: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
298 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 0);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:298:14: note: 'sprintf' output between 6 and 1019 bytes into a destination of size 1000
298 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 0);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:298:14: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:295:22: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
295 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 1);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:295:14: note: 'sprintf' output between 6 and 1019 bytes into a destination of size 1000
295 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 1);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:295:14: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:20: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
300 | sprintf(value, "%s,\"%s\":%f", value, ActionDur.c_str(), H_Ouvre[i]);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:20: note: assuming directive output of 8 bytes
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:12: note: 'sprintf' output between 8 and 1335 bytes into a destination of size 1000
300 | sprintf(value, "%s,\"%s\":%f", value, ActionDur.c_str(), H_Ouvre[i]);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\OneWire.cpp:599:22: warning: extra tokens at end of #undef directive
599 | # undef noInterrupts() {portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;portENTER_CRITICAL(&mux)
| ^
c:\Users\33672\Documents\Arduino\libraries\OneWire\OneWire.cpp:600:20: warning: extra tokens at end of #undef directive
600 | # undef interrupts() portEXIT_CRITICAL(&mux);}
| ^
In file included from C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal-gpio.h:30,
from C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal.h:75,
from C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/Arduino.h:36,
from c:\Users\33672\Documents\Arduino\libraries\OneWire\OneWire.cpp:147:
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function 'void directModeInput(uint32_t)':
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32/include/driver/gpio/include/driver/gpio.h:25:56: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
25 | #define GPIO_IS_VALID_GPIO(gpio_num) ((gpio_num >= 0) && \
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal-gpio.h:68:34: note: in expansion of macro 'GPIO_IS_VALID_GPIO'
68 | #define digitalPinIsValid(pin) GPIO_IS_VALID_GPIO(pin)
| ^~~~~~~~~~~~~~~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:214:10: note: in expansion of macro 'digitalPinIsValid'
214 | if ( digitalPinIsValid(pin) )
| ^~~~~~~~~~~~~~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function 'void directModeOutput(uint32_t)':
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32/include/driver/gpio/include/driver/gpio.h:25:56: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
25 | #define GPIO_IS_VALID_GPIO(gpio_num) ((gpio_num >= 0) && \
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal-gpio.h:68:34: note: in expansion of macro 'GPIO_IS_VALID_GPIO'
68 | #define digitalPinIsValid(pin) GPIO_IS_VALID_GPIO(pin)
| ^~~~~~~~~~~~~~~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:240:10: note: in expansion of macro 'digitalPinIsValid'
240 | if ( digitalPinIsValid(pin) && pin <= 33 ) // pins above 33 can be only inputs
| ^~~~~~~~~~~~~~~~~
Le croquis utilise 1375081 octets (104%) de l'espace de stockage de programmes. Le maximum est de 1310720 octets.
Les variables globales utilisent 106456 octets (32%) de mémoire dynamique, ce qui laisse 221224 octets pour les variables locales. Le maximum est de 327680 octets.
Croquis trop gros; vois https://support.arduino.cc/hc/en-us/arti...0013825179 pour des conseils de réduction.
text section exceeds available space in board
Compilation error: text section exceeds available space in board
j'ai suivie pas a pas la procédure énonce et cela ne marche pas.
je pense raté quelque chose mais je ne vois pas
lors de la compilation j'ai plein d'erreur
et il fini par me dire que croquis trop gros
quelqu'un peut m'aider svp
et merci d'avance
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void envoiVersMQTT()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:81:7: warning: unused variable 'etat' [-Wunused-variable]
81 | int etat = 0; // utilisé pour l'envoie de l'état On/Off des actions.
| ^~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void SendDataToHomeAssistant()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 10 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:255:18: warning: format '%d' expects argument of type 'int', but argument 11 has type 'long int' [-Wformat=]
255 | sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 10 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 11 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: format '%d' expects argument of type 'int', but argument 12 has type 'long int' [-Wformat=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:20: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'String' [-Wformat=]
276 | sprintf(value, "%s,\"LTARF\":\"%s\", \"Code_Tarifaire\":%d", value, LTARF, code);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:303:8: warning: unused variable 'published' [-Wunused-variable]
303 | bool published = clientMQTT.publish(StateTopic, value);
| ^~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Server.ino: In function 'void Liste_WIFI()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Server.ino:570:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int32_t' {aka 'long int'} [-Wformat=]
570 | Serial.printf("%4d", WiFi.RSSI(i));
| ^~~~~ ~~~~~~~~~~~~
| |
| int32_t {aka long int}
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino: In function 'void LectureEnROM()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino:135:7: warning: variable 'VersionStocke' set but not used [-Wunused-but-set-variable]
135 | int VersionStocke;
| ^~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino: In function 'void ImportParametres(String)':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Stockage.ino:578:7: warning: unused variable 'VersionStocke' [-Wunused-variable]
578 | int VersionStocke = IntJson("VersionStocke", Conf);
| ^~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Tempo_RTE.ino: In function 'void Call_RTE_data()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\Tempo_RTE.ino:18:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
18 | if ((DATEvalid) && ((LastH != Hcour) && (Hcour == 301 || Hcour == 310 || Hcour == 530 || Hcour == 560 || Hcour == 600 || Hcour == 900 || Hcour == 1150) || LastHeureRTE < 0)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void DeviceToDiscover(String, String, String, String)':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:198:19: warning: ')}}' directive writing 3 bytes into a region of size between 0 and 28 [-Wformat-overflow=]
198 | sprintf(ValTpl, "{{ value_json.%s|default(0)|round(%s)}}", VarName.c_str(), Round.c_str());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:198:10: note: 'sprintf' output between 36 and 64 bytes into a destination of size 60
198 | sprintf(ValTpl, "{{ value_json.%s|default(0)|round(%s)}}", VarName.c_str(), Round.c_str());
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:201:26: warning: '%s' directive writing up to 59 bytes into a region of size 28 [-Wformat-overflow=]
201 | sprintf(state_class, "\"state_class\":\"total_increasing\"%s,", state_class);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:201:12: note: 'sprintf' output between 34 and 93 bytes into a destination of size 60
201 | sprintf(state_class, "\"state_class\":\"total_increasing\"%s,", state_class);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:201:12: warning: 'sprintf' argument 3 overlaps destination object 'state_class' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:194:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
194 | char state_class[60];
| ^~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino: In function 'void SendDataToHomeAssistant()':
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: warning: ',"PuissanceS_T": ' directive writing 17 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: note: assuming directive output of 4 bytes
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:20: note: assuming directive output of 4 bytes
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:12: note: 'sprintf' output between 218 and 2515 bytes into a destination of size 1000
258 | sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:258:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:261:20: warning: ',"Temperature": ' directive writing 16 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
261 | sprintf(value, "%s,\"Temperature\": %.1f", value, temperature);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:261:12: note: 'sprintf' output between 20 and 1328 bytes into a destination of size 1000
261 | sprintf(value, "%s,\"Temperature\": %.1f", value, temperature);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:261:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:20: warning: ',"LTARF":"' directive writing 10 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
276 | sprintf(value, "%s,\"LTARF\":\"%s\", \"Code_Tarifaire\":%d", value, LTARF, code);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:20: note: directive argument in the range [0, 19]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:12: note: 'sprintf' output 32 or more bytes (assuming 1032) into a destination of size 1000
276 | sprintf(value, "%s,\"LTARF\":\"%s\", \"Code_Tarifaire\":%d", value, LTARF, code);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:276:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:280:20: warning: ',"PactProd":' directive writing 12 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
280 | sprintf(value, "%s,\"PactProd\":%d, \"PactConso_M\":%d", value, PactProd, PactConso_M);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:280:12: note: 'sprintf' output between 31 and 1050 bytes into a destination of size 1000
280 | sprintf(value, "%s,\"PactProd\":%d, \"PactConso_M\":%d", value, PactProd, PactConso_M);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:280:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:302:18: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
302 | sprintf(value, "%s}", value);
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:302:10: note: 'sprintf' output between 2 and 1001 bytes into a destination of size 1000
302 | sprintf(value, "%s}", value);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:302:10: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:20: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
293 | sprintf(value, "%s,\"%s\":%d", value, ActType.c_str(), Ouv);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:20: note: directive argument in the range [-2147483547, 2147483647]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:12: note: 'sprintf' output between 6 and 1029 bytes into a destination of size 1000
293 | sprintf(value, "%s,\"%s\":%d", value, ActType.c_str(), Ouv);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:293:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:298:22: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
298 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 0);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:298:14: note: 'sprintf' output between 6 and 1019 bytes into a destination of size 1000
298 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 0);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:298:14: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:295:22: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
295 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 1);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:295:14: note: 'sprintf' output between 6 and 1019 bytes into a destination of size 1000
295 | sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 1);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:295:14: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:20: warning: ',"' directive writing 2 bytes into a region of size between 1 and 1000 [-Wformat-overflow=]
300 | sprintf(value, "%s,\"%s\":%f", value, ActionDur.c_str(), H_Ouvre[i]);
| ^~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:20: note: assuming directive output of 8 bytes
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:12: note: 'sprintf' output between 8 and 1335 bytes into a destination of size 1000
300 | sprintf(value, "%s,\"%s\":%f", value, ActionDur.c_str(), H_Ouvre[i]);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:300:12: warning: 'sprintf' argument 3 overlaps destination object 'value' [-Wrestrict]
C:\Program Files\Arduino IDE\Solar_Router_V11_20\MQTT.ino:254:8: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
254 | char value[1000];
| ^~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\OneWire.cpp:599:22: warning: extra tokens at end of #undef directive
599 | # undef noInterrupts() {portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;portENTER_CRITICAL(&mux)
| ^
c:\Users\33672\Documents\Arduino\libraries\OneWire\OneWire.cpp:600:20: warning: extra tokens at end of #undef directive
600 | # undef interrupts() portEXIT_CRITICAL(&mux);}
| ^
In file included from C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal-gpio.h:30,
from C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal.h:75,
from C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/Arduino.h:36,
from c:\Users\33672\Documents\Arduino\libraries\OneWire\OneWire.cpp:147:
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function 'void directModeInput(uint32_t)':
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32/include/driver/gpio/include/driver/gpio.h:25:56: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
25 | #define GPIO_IS_VALID_GPIO(gpio_num) ((gpio_num >= 0) && \
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal-gpio.h:68:34: note: in expansion of macro 'GPIO_IS_VALID_GPIO'
68 | #define digitalPinIsValid(pin) GPIO_IS_VALID_GPIO(pin)
| ^~~~~~~~~~~~~~~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:214:10: note: in expansion of macro 'digitalPinIsValid'
214 | if ( digitalPinIsValid(pin) )
| ^~~~~~~~~~~~~~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h: In function 'void directModeOutput(uint32_t)':
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-b6b4727c58\esp32/include/driver/gpio/include/driver/gpio.h:25:56: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
25 | #define GPIO_IS_VALID_GPIO(gpio_num) ((gpio_num >= 0) && \
C:\Users\33672\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\cores\esp32/esp32-hal-gpio.h:68:34: note: in expansion of macro 'GPIO_IS_VALID_GPIO'
68 | #define digitalPinIsValid(pin) GPIO_IS_VALID_GPIO(pin)
| ^~~~~~~~~~~~~~~~~~
c:\Users\33672\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:240:10: note: in expansion of macro 'digitalPinIsValid'
240 | if ( digitalPinIsValid(pin) && pin <= 33 ) // pins above 33 can be only inputs
| ^~~~~~~~~~~~~~~~~
Le croquis utilise 1375081 octets (104%) de l'espace de stockage de programmes. Le maximum est de 1310720 octets.
Les variables globales utilisent 106456 octets (32%) de mémoire dynamique, ce qui laisse 221224 octets pour les variables locales. Le maximum est de 327680 octets.
Croquis trop gros; vois https://support.arduino.cc/hc/en-us/arti...0013825179 pour des conseils de réduction.
text section exceeds available space in board
Compilation error: text section exceeds available space in board