Hi, I'm creating a little Arduino server.
Can I use a separate file for CSS settings?
I have not any problems if I write my CSS rules in the index.htm but I'd like to keep html and CSS separated.
I am including the file with the correct path but it is not loaded when I open the page from the browser.
Well, I looked at that page.
I'm experiencing a very annoying problem. I am using a "if" to check what is the client looking for but it doesn't work.
I can paste here some stupid code just to explain the problem:
As you can see I'm trying to send the page in both cases of the if but neither of them (if / else) are executed! How is that possible??
Instead of 2>-1 I should use the condition (msg.indexOf("lightSensor")>-1) but it doesn't work just as 2>-1 .
Nothing works!!! Why!??!?!
I don't know what's happening here.. I have closed the browser, turned off the Arduino then turned on and opened the browser and the page has been loaded as expected, so the "if" now has worked fine. But if I reload the page same problem until I detach the Arduino again.