X10 Server - IOT device to leverage a collection of old X10 devices for home automation and lighting control.

Dependencies:   IniManager mbed HTTPClient SWUpdate mbed-rtos Watchdog X10 SW_HTTPServer SW_String EthernetInterface TimeInterface SSDP

X10 Server

See the X10 Server Nodebook page

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Mon Mar 04 00:05:08 2019 +0000
Parent:
9:2c96e69b6035
Commit message:
Fix the SignOfLife LED display.

Changed in this revision

SSDP.lib Show annotated file Show diff for this revision Revisions of this file
SignOfLife.cpp Show annotated file Show diff for this revision Revisions of this file
WebPages.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2c96e69b6035 -r 67c524db9e07 SSDP.lib
--- a/SSDP.lib	Sun Mar 03 00:26:40 2019 +0000
+++ b/SSDP.lib	Mon Mar 04 00:05:08 2019 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/WiredHome/code/SSDP/#9b46a499de53
+https://os.mbed.com/users/WiredHome/code/SSDP/#26f5a66f05a4
diff -r 2c96e69b6035 -r 67c524db9e07 SignOfLife.cpp
--- a/SignOfLife.cpp	Sun Mar 03 00:26:40 2019 +0000
+++ b/SignOfLife.cpp	Mon Mar 04 00:05:08 2019 +0000
@@ -15,7 +15,7 @@
     float v;
     which %= 4; // 0-3: LED1-4
 
-    degrees[which] += 10;
+    degrees[which] += 5;
     v = sin(degrees[which] * PI / 180)/2 + 0.5;
     signOfLife[which] = v;     // a little dimmer
 }
diff -r 2c96e69b6035 -r 67c524db9e07 WebPages.cpp
--- a/WebPages.cpp	Sun Mar 03 00:26:40 2019 +0000
+++ b/WebPages.cpp	Mon Mar 04 00:05:08 2019 +0000
@@ -23,19 +23,12 @@
 
 extern "C" void mbed_reset();
 
-// ##########################################
-// This test version controls the LEDs
-//
-DigitalOut leds[4] = { LED1, LED2, LED3, LED4 };
-
 
 static const char hdrTypeHTML_NoCache[] = 
     "Content-Type: text/html\r\n"
     "Cache-Control: no-cache\r\n";
 
 
-
-
 // The /setup.xml file
 //
 // sprintf(buf, SETUP_TEMPLATE, "FriendlyName", "udn_hexstring", "serialNum", "ip.ad.dr", portNum);
diff -r 2c96e69b6035 -r 67c524db9e07 main.cpp
--- a/main.cpp	Sun Mar 03 00:26:40 2019 +0000
+++ b/main.cpp	Mon Mar 04 00:05:08 2019 +0000
@@ -362,8 +362,7 @@
                     CheckConsoleInput();
                     x10svr.poll();      
                     svr.Poll();         // Web Server: non-blocking, but also not deterministic
-                    ShowSignOfLife(1);
-                    ShowSignOfLife(2);
+                    ShowSignOfLife(3);
                     if (tNow != tLastSec) {
                         pc.printf("time is %s\r\n", ntp.ctime(&tNow));
                         tLastSec = tNow;