Hello everyone, i am building a webserver. Webserver works. It also works with SD card. My problem is when I am trying to connect html with CSS. This is not working.
HTML page does not understand that there is CSS in another file.
I have attached the files.
<html>
<head>
<title>IEEE Office</title>
<link rel="stylesheet" type="text/css" href="theme.css">
</head>
<body>
<h1 align="center">IEEE University of Ioannina Student Branch</h1>
<h3>this page is under construction.</h3>
</body>
</html>
Which is the easiest way to display values of digital pins that i read with arduino from some sensors? Lets say that i read the temperature and i want to display it in a html website. How can i combine the arduino code and the html code that it saved in the SD card?
xmarkx:
Which is the easiest way to display values of digital pins that i read with arduino from some sensors? Lets say that i read the temperature and i want to display it in a html website. How can i combine the arduino code and the html code that it saved in the SD card?
tahnk you
You would need to add a simple version of PHP to that code to add the pin state to your page..
You should have two files - one containing the part that goes before the live data and one that goes after. Send the contents of the first file. Send the live data, in html tags. Send the contents of the second file.
After some research I think that the best way of setting up a webserver is by serving a JSON string and the application have some way of decoding the string. Whats your opinion about this?