Skip to content

Commit 7a84e13

Browse files
committed
Update example and move it to the right location
1 parent ec34dbe commit 7a84e13

File tree

1 file changed

+10
-10
lines changed
  • hardware/esp8266com/esp8266/libraries/ESP8266SSDP/examples/SSDP

1 file changed

+10
-10
lines changed

hardware/esp8266com/esp8266/libraries/ESP8266SSDP/examples/SSDP.ino renamed to hardware/esp8266com/esp8266/libraries/ESP8266SSDP/examples/SSDP/SSDP.ino

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ void setup() {
2727
HTTP.begin();
2828

2929
Serial.printf("Starting SSDP...\n");
30-
SSDP.begin();
31-
SSDP.setSchemaURL((char*)"description.xml");
30+
SSDP.setSchemaURL("description.xml");
3231
SSDP.setHTTPPort(80);
33-
SSDP.setName((char*)"Philips hue clone");
34-
SSDP.setSerialNumber((char*)"001788102201");
35-
SSDP.setURL((char*)"index.html");
36-
SSDP.setModelName((char*)"Philips hue bridge 2012");
37-
SSDP.setModelNumber((char*)"929000226503");
38-
SSDP.setModelURL((char*)"http://www.meethue.com");
39-
SSDP.setManufacturer((char*)"Royal Philips Electronics");
40-
SSDP.setManufacturerURL((char*)"http://www.philips.com");
32+
SSDP.setName("Philips hue clone");
33+
SSDP.setSerialNumber("001788102201");
34+
SSDP.setURL("index.html");
35+
SSDP.setModelName("Philips hue bridge 2012");
36+
SSDP.setModelNumber("929000226503");
37+
SSDP.setModelURL("http://www.meethue.com");
38+
SSDP.setManufacturer("Royal Philips Electronics");
39+
SSDP.setManufacturerURL("http://www.philips.com");
40+
SSDP.begin();
4141

4242
Serial.printf("Ready!\n");
4343
} else {

0 commit comments

Comments
 (0)