Printing mailbox and weather data structure sizes on firmware startup

This commit is contained in:
Th3maz1ng 2025-12-26 12:09:58 +01:00
parent 674b400fbf
commit 8dd4648a06

View File

@ -117,6 +117,7 @@ void setup()
Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY); Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
delay(1000); delay(1000);
Serial.println("\nSetup begin"); Serial.println("\nSetup begin");
Serial.printf("Size of mailbox data packets: %d\nSize of weather data packets: %d\n", sizeof mdp, sizeof wsdp);
//We set the WiFi part up : //We set the WiFi part up :
gotIp = WiFi.onStationModeGotIP(&(gotIpFunc)); gotIp = WiFi.onStationModeGotIP(&(gotIpFunc));
lostConnection = WiFi.onStationModeDisconnected(&(lostConnectionFunc)); lostConnection = WiFi.onStationModeDisconnected(&(lostConnectionFunc));