Files
WLED/wled00
Aircoookie ec6a243e3e Hostname alphanumeric (#1048)
* Use string derived from serverDescription for wifi.hostname()

The code was sending illegal hostname strings to WiFi.hostname() (which is then submitted to DHCP and often times to DNS.)  A valid hostname contains only alphanumeric characters and hyphens (though it can't start with a hypen.)  This change simply alters the value passed to wifi.hostname() by replacing all non alphanum chars with hyphens while ensuring the first char is never a hyphen.  If the resulting hostname is empty, it uses the escapedMac value (which I'm assuming is initialized by the time this code executes.)

This change would result issue #1033

* replace string with char array
prefix wled
improve documentation

Co-authored-by: garyd9 <garyd9@hotmail.com>
Co-authored-by: Gary Dezern <gdezern@internal.youforgot.net>
2020-07-19 16:24:26 +02:00
..
2020-04-10 12:30:08 +02:00
2020-04-10 12:30:08 +02:00
2020-04-10 12:30:08 +02:00
2020-04-21 22:56:14 +02:00
2020-06-26 17:28:35 +02:00
2020-04-10 12:30:08 +02:00
2020-07-19 16:24:26 +02:00
2020-04-10 12:30:08 +02:00
2020-06-26 17:28:35 +02:00
2020-06-26 17:28:35 +02:00
2020-05-28 02:20:02 +02:00
2020-04-10 12:30:08 +02:00
2020-03-25 11:17:45 +01:00
2020-05-28 02:20:02 +02:00
2020-05-28 02:20:02 +02:00
2020-06-06 00:57:34 +02:00
2020-05-28 02:20:02 +02:00
2020-04-10 12:30:08 +02:00
2020-04-10 12:30:08 +02:00
2020-04-10 12:30:08 +02:00
2020-05-23 16:09:49 +02:00
2020-06-26 17:28:35 +02:00
2020-07-19 16:24:26 +02:00
2020-07-19 16:24:26 +02:00
2020-06-26 17:28:35 +02:00