Webduino PREFIX?

Well I'm confused.

The Webduino code examples use

#define PREFIX ""

WebServer webserver(PREFIX, 80);

What does that do exactly?? If I change PREFIX to anything other than "" I get the famous Epic Fail message.

What I'm trying to do here is create a series of pages, but make one of them the default for the ip address, so that the user does not need to specify which page to use. Each page has a function

void formCmd(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete);

Also I'm not able to find any documentation for the Webduino library. Any suggestions? Or am I just missing something?


See here :-

You can read the codes at Webserver.h

While I was running the example codes of Web_AJAXRGB, I notice there is a delay when I slide the color bar and changing of colour of my RGB strip... ( tested on both chrome and firefox )

When I turn on DEBUG, I notice the web browser did a POST while I was sliding the colour bar but did not usually get the final colour I needed bcos the web transaction was completed...

How do I delay the web POST until I stop sliding the colour bar or poll the colour bar more often ??

POST /rgb HTTP/1.1<CR><LF>
Host: 192.168.0.XX<CR><LF>
Connection: keep-alive<CR><LF>
Content-Length: 9<CR><LF>
Accept: */*<CR><LF>
Origin: http://192.168.0.XX<CR><LF>
X-Requested-With: XMLHttpRequest<CR><LF>
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31<CR><LF>
Content-Type: application/x-www-form-urlencoded<CR><LF>
Accept-Encoding: gzip,deflate,sdch<CR><LF>
Accept-Language: en-US,en;q=0.8<CR><LF>
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3<CR><LF>
green=115*** Connection lost
*** Connection lost