If condition not working for ethenet shield?
hello, i'm making website see temperature levels, using lm35 ic and, arduino ethernet shield.
this not working, @ least http request not working, if use other condition, (or other variable) working perfectly. can't understand why happening.
please 1 me...
thank you
code: [select]
tempc1 = analogread(temp_input_pin_01); // taking value senser ( temp_input_pin_01 ) , save in tempc1.
tempc1 = (5.0*tempc1*100.0)/1024.0 ;
if (tempc1 >= 45)
{
digitalwrite(cooling_fan_01,high);
}
else
{
digitalwrite(cooling_fan_01,low);
}
//and in html section
client.println("<div class='col-md-2'>");
client.println("<div class='panel panel-warning'>");
client.println("<div class='panel-heading'>");
client.println("<h3 class='panel-title' align='center'>temperature 01</h3>");
client.println("</div>");
client.println("<div class='panel-body'>");
if(tempc1 >= 45)
{
client.println("<img src='http://miracle.lk/mpb_nce/13.jpg'width='112' height='110'align='center'>");
}
else
{
client.println("<img src='http://miracle.lk/mpb_nce/14.jpg'width='112' height='110'align='center'>");
}
client.println("<div class='container' align='center'></div>");
client.println("</div>");
client.println("</div>");
client.println("</div>");
this not working, @ least http request not working, if use other condition, (or other variable) working perfectly. can't understand why happening.
please 1 me...
thank you
try here
Arduino Forum > Using Arduino > Programming Questions > If condition not working for ethenet shield?
arduino
Comments
Post a Comment