Pages: [1]   Go Down
Author Topic: WiFi Web Server  (Read 269 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To include a quote mark in a quoted string, it is necessary to escape it by putting '\' before it, like this:
Code:
char *foo = "\"Murder!\", she cried.";

br
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ty

that was it

devobtch
Logged

Pages: [1]   Go Up
Jump to: