Could someone explain why this is not working on my esp8266 (nodemcu)? it always shows that maxValue is 1.
String r = "3";
String g = "4"; //example numbers (normally get from server)
String b = "5";
int r_int = r.toInt();
int g_int = g.toInt();
int b_int = b.toInt();
int maxValue = 1;
int biggest[3] = {r_int, g_int, b_int};
for (int t; t < 3; t++) {
if (biggest[t] > maxValue) {
maxValue = biggest[t];
}
}