Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of httpServer by
Revision 3:b2d8ac343302, committed 2015-08-21
- Comitter:
- M_J
- Date:
- Fri Aug 21 05:12:43 2015 +0000
- Parent:
- 2:859187375533
- Commit message:
- finish?
Changed in this revision
| Handler/FsHandler.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/Handler/FsHandler.cpp	Wed Aug 19 16:26:26 2015 +0000
+++ b/Handler/FsHandler.cpp	Fri Aug 21 05:12:43 2015 +0000
@@ -7,6 +7,7 @@
 int lumi_val = 1;
 int cel_val = 1;
 int touch_val = 1;
+int control = 1;
 
 DigitalIn  din(PC_14);
 
@@ -163,6 +164,10 @@
         {
             touch_val = get_http_param_value("val");
         }
+        else if(pin == 0)
+        {
+            control = get_http_param_value("val");
+        }
         else
         {
             WARN("Wrong pin number");
    