An example demonstrating SSDP Discovery and a companion Web Server.

Dependencies:   mbed mbed-rtos Watchdog SW_HTTPServer SW_String EthernetInterface TimeInterface SSDP

This example program provides a framework -by- example.

It makes itself discoverable to the network using SSDP. From there, it is easy to access the embedded web server to interact with the embedded node.

The example, built on the LPC1768, provides interaction to turn the LEDs on and off via a web page that is discovered using the SSDP protocol.

It also picks up time via an NTP server.

Revision:
6:80a97f156128
Parent:
5:6244e237def1
--- a/main.cpp	Sat Sep 01 01:05:57 2018 +0000
+++ b/main.cpp	Sat Sep 01 01:46:33 2018 +0000
@@ -95,6 +95,7 @@
                         lcd.SetTextFontSize(2);
                         lcd.SetTextCursor(20,120);
                         lcd.printf("%s", ntp.ctime(&tNow));
+                        lcd.SetTextFontSize(0);
 #endif
                         pc.printf("time is %s\r\n", ntp.ctime(&tNow));
                         tLast = tNow;
@@ -110,6 +111,7 @@
                 eth.disconnect();
             } else {
 #ifdef RA8875_H
+                lcd.cls();
                 lcd.printf("  ... failed to connect\r\n");
 #endif
                 pc.printf("  ... failed to connect.\r\n");