Closed PropGit closed 8 years ago
I see that the module name is stored as the module's Hostname.
If it's not possible for hostnames to have spaces (and I believe it is not allowed) then please make proploader automatically convert any white space (spaces) in the given name to underscores (_). For this reason, it should probably finish up the module naming operation with a success message (related to Issue #10) saying something like: "Set module name to '
Should we add a new field to the config structure to contain the "friendly name" so that we can relax the requirement to allow spaces? I just used hostname because it was a field that was already present.
No, I like your decision to use hostname because it makes it show up in other network areas too; like the AP's Wi-Fi client list.
Let's just make proploader automatically:
I've modified proploader to enforce the following rules:
Module names should only include the characters A-Z, a-z, 0-9, or '-' and should not begin or end with a '-'. They must also be less than 32 characters long.
In addition, it will attempt to convert any name provided by the user to a compliant name by replacing spaces with hyphens.
Spaces are being stripped out of the module name.
Using
proploader -i <ipaddress> -n "My Wi-Fi Module"
results in the module being named "My" instead.