Go Down

Topic: WiFi Web Server (Read 367 times) previous topic - next topic

devobitch

hi
i am using WiFi Web Server example
the problem i am having is

client.print("<body bgcolor="#00FF00">");

gives this error

wifiServer:87: error: stray '#' in program
wifiServer.ino:87:41: error: invalid suffix "FF00" on integer constant
wifiServer.ino: In function 'void loop()':
wifiServer:87: error: expected `)' before numeric constant

so i am trying to change background color of the web page
shouldn't this work?
is there another way?


i am using a arduino 2560 and the wifi shield
i am trying to set up a web page that monitors
water level and temp of my grow room

thanks

devobtch

billroy

To include a quote mark in a quoted string, it is necessary to escape it by putting '\' before it, like this:
Code: [Select]

char *foo = "\"Murder!\", she cried.";


br

devobitch

ty

that was it

devobtch

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy