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:
4:5da66fab599c
Parent:
2:ca5d12560ff7
--- a/WebPages.cpp	Tue Jul 10 23:16:02 2018 +0000
+++ b/WebPages.cpp	Fri Aug 31 22:51:15 2018 +0000
@@ -9,7 +9,7 @@
 extern const char * PROG_NAME;
 extern const char * My_Name;
 extern const char * My_SerialNum;
-const int Server_Port = 80;
+extern int Server_Port;
 
 
 // ##########################################
@@ -188,7 +188,6 @@
 {
     char BigBuffer[sizeof(SETUP_TEMPLATE) + 150];
     HTTPServer::CallBackResults ret = HTTPServer::ACCEPT_ERROR;
-    printf("Setup.xml responder\n");
     switch (type) {
         case HTTPServer::SEND_PAGE:
             svr->header(HTTPServer::OK, "OK", hdrTypeHTML_NoCache);
@@ -219,7 +218,6 @@
     #define bufSize (sizeof(ROOTPAGE) + 100)
     char * BigBuffer = (char *)malloc(bufSize);
     HTTPServer::CallBackResults ret = HTTPServer::ACCEPT_ERROR;
-    printf("RootPage responder\n");
     if (!BigBuffer) {
         printf("cannot allocate %d bytes\n", bufSize);
         return ret;