1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

19 Commits

Author SHA1 Message Date
Dirk Mueller
4aeb0f5cca
Use direct member initialization instead of ctr initialisation (#7558)
* Use direct member initialization instead of ctr initialisation

This removes a bit of code repetition.

* Add symbolic names for member initializers
2020-10-05 13:56:08 -07:00
Martijn Scheepers
b64e8da2e2
Set a value for SSDP notify interval (#7110)
* Set a value for SSDP notify interval, default to 1200 seconds.

* Changed uint8_t to uint32_t

Co-authored-by: david gauchard <gauchard@laas.fr>
2020-03-03 19:00:38 -03:00
Earle F. Philhower, III
344c4492af [SSDP] add schema(Print &) const (#6798)
* [SSDP] add `schema(Print &) const`

Supercedes #2806

Make SSDP::schema(WiFiClient&) use a by-ref (reduce stack use)

Add a SSDP::schema(Print&)

From @Palatis' original PR:
useful when using AsyncWebServer.

* Use ip.toString, only export Print& schema interface

Because WiFiClient inherits a Print interface, replace the
::schema(WiFiClient&) with ::schema(Print&) which is source compatible
with existing code and allows the functionality requested in the initial
PR.

Use ip.toString() in the templates instead of breaking up the octets of
the address.

* Fix compile errors and backwards compatibility
2019-11-19 02:02:54 -03:00
Allman-astyler
eea9999dc5 Revert "Allman now (#6080)" (#6090)
This reverts commit 98125f88605cd7e46e9be4e1b3ad0600dd5d2b51.
2019-05-14 00:09:54 +02:00
Allman-astyler
98125f8860 Allman now (#6080)
* switch restyle script for CI

* remove confirmation

* restyle with allman
2019-05-13 16:41:34 +02:00
Ahmed El Sharnoby
e829221833 Fix ssdp (#5750)
* Update ESP8266SSDP.h

Fix SSDP bug: The response to M-Search Packet with ST field set to UUID should be with the UUID not the Device Type
Integrated 'uuid:' prefix into the char array of the _uuid

* Update ESP8266SSDP.cpp

Fix SSDP bug: The response to M-Search Packet with ST field set to UUID should be with the UUID not the Device Type
Integrated 'uuid:' prefix into the char array of the _uuid

* include 'uuid:' in format String and in flash

* Update ESP8266SSDP.cpp
2019-03-21 18:21:48 +01:00
Mike C
d7094f2269 Release referenced resources in the destructor for ESP8266SSDP (#5607)
* Release referenced resources in destructor

* Release referenced resources in destructor, corrected for IPV6

* Release referenced resources in destructor, per suggested changes
2019-01-22 00:00:19 -03:00
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
Clemens Kirchgatterer
18297458be allows global object instances be switch off with defines (#2344) 2016-08-01 11:21:50 +08: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
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