HTTP Client code
i have question client in http server
i try write part sub code in main code .
so when call function print me data on screen.
but error -
why it? isn't client "global" can use on code?
thanks,
i try write part sub code in main code .
code: [select]
void printdatehttp()
{
client.print(day[tempday]);
client.print("<br />");
client.print("<br />");
client.print(monthday);
client.print("/");
client.print(month);
client.print("/");
client.print(year);
client.print(" ");
client.print(hour);
client.print(":");
client.print(minute);
client.print(":");
if(second<10)
{
client.print("0");
}
client.println(second);
}
so when call function print me data on screen.
but error -
quote
error: 'client' not declared in scope
why it? isn't client "global" can use on code?
thanks,
post code.
as looks have failed declare global instance of "client"
as looks have failed declare global instance of "client"
Arduino Forum > Using Arduino > Project Guidance > HTTP Client code
arduino
Comments
Post a Comment