HTTP Client code


i have question client in http server
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"


Arduino Forum > Using Arduino > Project Guidance > HTTP Client code


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support