Hi, this code is really nice! I modified it a little bit to be used with LM35DZ.
Now I need to implement the basic authentication (otherwise everybody can enter my home system and switch on my heater!!!) but I am completely lost!!! Could someone help me please?
thanks!
The client will make a request to your Arduino, typically with no authorization.
GET /foo HTTP/1.0
Host: foo.bar.com
Your arduino should respond with a request for authorization
403 Forbidden
The client will redo its request with credentials
GET /foo HTTP/1.0
Host: foo.bar.com
Authorization: Basic base_64_encoded_username_password
Your arduino can either decode the base64 encoded string or simply perform a match against a known base64 encoded string. An example of a an encoded Header, using the username "username" and password "password" separated by a colon in the standard format of "username:password" would look like:
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
In each instance there will be additional HTTP headers present, such as "User-Agent:" or "Accept:", but what I have above are the only important ones.
Putting that more simply, for any request that you receive you should verify that there is an Authorization: header and that the encoded string contains a proper username/password. Continue processing the request as usual if so. If not, reply with a 403 Forbidden response.
hi guys i have arduino mega at mega 2560 and i cant compile this code.
i have this error
Arduino: 1.5.7 (Windows 8), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
web_control.ino:20:21: fatal error: OneWire.h: No such file or directory
compilation terminated.
i need this project
please help
djkpap:
hi guys i have arduino mega at mega 2560 and i cant compile this code.
i have this error
Arduino: 1.5.7 (Windows 8), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
web_control.ino:20:21: fatal error: OneWire.h: No such file or directory
compilation terminated.
i need this project
please help
warunasanjaya11:
I want know whether Arduino Nano Clone is a USB Microcontroller or not? .Because I found a product in website named http://iteadstudio.com and the product name is Arduino Nano USB Microcontroller v3 (Clone version) .As you mentioned in your description the these words "Arduino" ,"Nano" and "Clone" words are containing in the product name Arduino Nano USB Microcontroller v3 (Clone version). If you mentioned the same product can you please tell me the prize you bought that part and from where you bought it. So I can compare it with the prizes in markets and buy the cheapest one