1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

18 Commits

Author SHA1 Message Date
Alex Potsides
8b9f78eed3 Switch SSDP send arguments around
They are in the wrong order - `_ssdp_packet_template` expects `_uuid` to be before the NT/ST header.
2016-04-26 07:55:03 +01:00
Jeremy Green
04deb7ee77 added comments for clarity 2016-03-16 10:54:12 -04:00
Jeremy Green
c8d855c46d Changed templates to include deviceType
Previously, the notify template and and response templates had a
hardcoded NT (or ST) of upnp:root device.  They now include the
deviceType that is set in initialization.
2016-03-10 21:57:59 -05:00
Wyatt Neal
9b880e7af2 only respond to ssdp searches that match our type 2016-01-09 23:25:57 -05:00
Wyatt Neal
1950b10751 more correctly responding to queries
also a small formatting fix. this should now allow the system to
actually respond to SSDP discoveries that are issued on the network ...
i'm still not 100% certain if this is right due to the way that the
switch() statement is setup; it could be processing more than it should
2016-01-06 20:52:31 -05:00
Wyatt Neal
17c3fb9ce6 fixing serial number length
silly goof, it's a string
2016-01-05 22:20:19 -05:00
Wyatt Neal
2e71a536cb should at least respond to discovery 2016-01-05 22:04:21 -05:00
Wyatt Neal
430331a4f8 adding a few new features to the packet format
* can now specify the TTL programmatically
* can now define the device type urn (up to 64 chars)
** still defaults to `Basic:1`
* can now set the serial number using a `uint32_t`, formatted as %08X
2016-01-05 21:53:48 -05:00
Wyatt Neal
dba2f92f78 fixing TTL to 2 per spec
the v1.1 upnp spec indicates that the default TTL should be set to 2
(and should also be configurable):

* http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf
2016-01-05 20:33:05 -05:00
Me No Dev
a44632b8cf make compiler happier 2015-11-25 18:11:16 +02:00
Ivan Grokhotkov
1b27b6760c Make SSDP event-driven 2015-07-07 17:39:13 +03:00
Ivan Grokhotkov
7fbb4831da Use static allocation, add convenience overloads which take String 2015-07-07 14:42:20 +03:00
John Doe
de70454a2a send not needed to be public 2015-07-07 10:24:12 +03:00
John Doe
e34ae2d6f1 prep for icons 2015-07-07 10:23:59 +03:00
John Doe
bd6c4acfd8 Add ability to change schema url, http port and add base url 2015-07-07 10:23:04 +03:00
John Doe
3c54cb0a26 generate UUID automatically based on chip ID and MAC address 2015-07-07 10:22:57 +03:00
John Doe
9cb80528c7 enable long model versions 2015-07-07 10:22:49 +03:00
John Doe
4fdba1b635 Add SSDP Library and let Print::printf to handle longer strings 2015-07-07 10:22:43 +03:00