Converting ASCII to int
<p>Using an arduino Wifi library (model MKR1000), I'm receiving a value from a webpage. Of course the value I'm receiving is ascii, so Arduino is having trouble receiving it and making it into a number.</p>

<p>So basically, instead of 62 (the number that is on the webpage) I am receiving "5450" (where 54 is ASCII value for 6 and 50 is ASCII value for 2).</p>

<p>My code is</p>

<pre><code>String c;
// By setting this to String it prints out 5450
// By setting this to int it instead prints out "hp"

if (client.connect(server, 80)) {
  Serial.println("connected to server");
  // Make a HTTP request:
  client.println("GET /arduino/electricity.php");
  delayNumber = 0;
}


  while (client.available()) {
    c = c + client.read();
  }
//Adds 54 and then 50 to c


Serial.print("C is: " + c);
//Currently prints 5450
</code></pre>

<p>I am completely lost. How can I make it so that my variable "c" is 62?</p>

<p>EDIT: I translated 54 and 50 using this table <a href="http://www.asciitable.com/" rel="nofollow noreferrer">http://www.asciitable.com/</a></p>