Laercio Mendonça
75a6a3f073
Include SetUUID for SSDP ( #4981 )
...
* Include SetUUID for SSDP
Inclusion of the SetUUID Method for Custom UUID
* Ajusts PR
* Include IconList Object on XML
2018-07-30 01:52:16 -04:00
Ivan Grokhotkov
61cd8d8385
examples: format all .ino files
...
This formats all the example source files using Arduino style rules.
2018-03-08 14:32:06 +08:00
Luc
d1e8fe99a2
Fix compilation with LWIP v2 ( #3822 )
2017-11-17 00:33:19 -03:00
snosrap
369edb616d
Case-insensitive deviceType compare and skip NOTIFY processing
...
* ifndef'd LWIP_OPEN_SRC to prevent a redefined warning
* ABORT on NOTIFY to prevent responding to NOTIFY messages (we should only respond to M-SEARCH messages)
* case-insensitive compare of _deviceType to enable response to all-lowercase Alexa queries (robustness principle)
2017-09-22 03:52:44 -05:00
Ivan Grokhotkov
283eb97cd3
docs: convert to .rst and add readthedocs
2017-05-14 11:44:16 -05:00
Chris Mullins
8b27047911
Put SSDP constants in progmem ( #3142 )
...
* Put constant strings in progmem
* strlen -> strlen_P
2017-05-09 06:16:40 -05:00
Clemens Kirchgatterer
18297458be
allows global object instances be switch off with defines ( #2344 )
2016-08-01 11:21:50 +08:00
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
496da02f14
Verify sketches as part of travis build
...
Squashed commits:
[7d1b42f] Encrypt token, skip some tests
[17b8f39] Fix sha1 example path
[f3050b1] Fix build, add webhook
[fd2c9bd] Fix build errors, update mDNS library readme
[7b87031] Make common.sh more flexible
[3ba3eb2] Test all sketches
[87beb8a] Build all sketches in esp8266 core
[f2464f1] Fix paths
[823a9ae] Remove sudo usage
[7fce734] Fix arduino commands
[619bc7d] Move all commands into travis script
[15a5ada] First attempt test runner
2015-07-23 16:06:07 +03:00
Ivan Grokhotkov
1be16c74c7
Remove update keyword
2015-07-07 17:58:49 +03:00
Ivan Grokhotkov
1b27b6760c
Make SSDP event-driven
2015-07-07 17:39:13 +03:00
Ivan Grokhotkov
0c0892c54a
Update example and move it to the right location
2015-07-07 14:43:19 +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