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
..
__vm 1. Fix an Issue withtin the DMX Compiler Flags if you dont use it in wled00.ino 2020-03-22 11:38:29 +01:00
.vs/wled00/v15 Add Visual Studio Project Structure 2019-07-23 17:59:55 +02:00
data Added Sunrise nightlight mode and more UI features 2020-06-22 12:30:31 +02:00
src/dependencies Update to Espalexa v2.4.6 2020-05-10 23:58:50 +02:00
alexa.cpp Fix Alexa not turning off white channel (fixes #1012) 2020-06-26 23:09:19 +02:00
blynk.cpp Fix DMX compilation 2020-04-10 12:30:08 +02:00
button.cpp Fix DMX compilation 2020-04-10 12:30:08 +02:00
colors.cpp Fix DMX compilation 2020-04-10 12:30:08 +02:00
const.h Merge pull request #1007 from axlan/mpu6050-usermod 2020-06-22 15:04:11 +02:00
dmx.cpp implement DMX proxy mode via MAX485 2020-04-21 22:56:14 +02:00
e131.cpp Merge pull request #862 from pille/DMX-proxy 2020-05-11 11:40:11 +02:00
fcn_declare.h WebSockets 2020-06-26 17:28:35 +02:00
file.cpp Fix DMX compilation 2020-04-10 12:30:08 +02:00
FX_fcn.cpp Hostname alphanumeric (#1048) 2020-07-19 16:24:26 +02:00
FX.cpp Fix lightning effect never using last 2 LEDs 2020-07-02 00:49:37 +02:00
FX.h Added Sunrise nightlight mode and more UI features 2020-06-22 12:30:31 +02:00
html_other.h Added Sunrise nightlight mode and more UI features 2020-06-22 12:30:31 +02:00
html_settings.h Added Sunrise nightlight mode and more UI features 2020-06-22 12:30:31 +02:00
html_ui.h Added Sunrise nightlight mode and more UI features 2020-06-22 12:30:31 +02:00
hue.cpp Fix DMX compilation 2020-04-10 12:30:08 +02:00
ir_codes.h adds support for 9-key remote and intensity/speed repeat actions 2020-06-04 08:24:55 -04:00
ir.cpp adds support for 9-key remote and intensity/speed repeat actions 2020-06-04 08:24:55 -04:00
json.cpp WebSockets 2020-06-26 17:28:35 +02:00
led.cpp WebSockets 2020-06-26 17:28:35 +02:00
mqtt.cpp Added v2 usermods API 2020-05-28 02:20:02 +02:00
NpbWrapper.h Add PWM pins - to use with esp_rgbww_controller 2020-05-29 13:51:20 +02:00
ntp.cpp Added ACST and ACST/ACDT timezones ( closes #881 ) 2020-05-03 01:48:23 +02:00
overlay.cpp Fix DMX compilation 2020-04-10 12:30:08 +02:00
palettes.h Added Pacifica effect (closes #790) 2020-03-25 11:17:45 +01:00
set.cpp Added SV=2 to HTTP API, allow selecting single segment only 2020-06-26 23:30:13 +02:00
udp.cpp Added TPM2 protocol support via Serial (#933) 2020-05-22 23:30:55 +02:00
um_manager.cpp Added v2 usermods API 2020-05-28 02:20:02 +02:00
usermod_v2_empty.h Added v2 usermods API 2020-05-28 02:20:02 +02:00
usermod.cpp Lots of new effects! 2020-06-06 00:57:34 +02:00
usermods_list.cpp Added v2 usermods API 2020-05-28 02:20:02 +02:00
wled00.ino Fix DMX compilation 2020-04-10 12:30:08 +02:00
wled00.vcxproj Fix DMX compilation 2020-04-10 12:30:08 +02:00
wled00.vcxproj.filters Fix DMX compilation 2020-04-10 12:30:08 +02:00
wled00.vcxproj.user Modify Structure to fix path issues 2019-07-23 18:51:26 +02:00
wled_eeprom.cpp Added Sunrise nightlight mode and more UI features 2020-06-22 12:30:31 +02:00
wled_serial.cpp Fixed TPM2 2020-05-23 16:09:49 +02:00
wled_server.cpp WebSockets 2020-06-26 17:28:35 +02:00
wled.cpp Hostname alphanumeric (#1048) 2020-07-19 16:24:26 +02:00
wled.h Hostname alphanumeric (#1048) 2020-07-19 16:24:26 +02:00
ws.cpp WebSockets 2020-06-26 17:28:35 +02:00
xml.cpp Added Sunrise nightlight mode and more UI features 2020-06-22 12:30:31 +02:00