Description
Hello,
per RFC952:
A "name" (Net, Host, Gateway, or Domain name) is a text string up
to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
sign (-), and period (.). Note that periods are only allowed when
they serve to delimit components of "domain style names". (See
RFC-921, "Domain Name System Implementation Schedule", for
background). No blank or space characters are permitted as part of a
name. No distinction is made between upper and lower case. The first
character must be an alpha character. The last character must not be
a minus sign or period. A host which serves as a GATEWAY should have
"-GATEWAY" or "-GW" as part of its name. Hosts which do not serve as
Internet gateways should not use "-GATEWAY" and "-GW" as part of
their names. A host which is a TAC should have "-TAC" as the last
part of its host name, if it is a DoD host. Single character names
or nicknames are not allowed.
However, the default hostname built by the SDK is ESP_XXXXXX (notice the underscore). Underscore is not a valid character per the RFC.
Looking at today's libmain.a in a hex editor, I can see the string ESP_%02X%02X%02X
, which looks like a printf format string.
To comply with the RFC, I suggest changing to ESP-%02X%02X%02X
, i.e.: replace the underscore with a dash.