Why I'm asking this possibly weird noob question: i learned that the IPAddress isn't - as i thought - a simple string, but a a whole class with its own header IPAddress.h. I then was wondering if storing (and possibly converting it into a string) was necessary at all if i can just for example Serial.print(WiFi.localIP()[3]) to get just the last octet printed in the console and the whole address on a LCD with WiFi.localIP().
Why I'm asking this possibly weird noob question: i learned that the IPAddress isn't - as i thought - a simple string, but a a whole class with its own header IPAddress.h. I then was wondering if storing (and possibly converting it into a string) was necessary at all if i can just for example Serial.print(WiFi.localIP()[3]) to get just the last octet printed in the console and the whole address on a LCD with WiFi.localIP().