What sort of value for valx do you get from
valx = client.parseInt();
Serial.print() it to make sure that it is what you think it should be.
What sort of value for valx do you get from
valx = client.parseInt();
Serial.print() it to make sure that it is what you think it should be.