suchmememanyskill / CYD-Klipper

An implementation of a wireless Klipper status display on an ESP32 + screen
https://suchmememanyskill.github.io/CYD-Klipper/
GNU General Public License v3.0
224 stars 32 forks source link

[Suggestion] Add ability to enter SSID with space #123

Open tit opened 1 month ago

tit commented 1 month ago

Hi! My SSID name contains space, for example "Homer Simpson". I tried to enter this name through serial monitor, but I get an error in the number of arguments.

> said Homer Simpson wifiPassWord

Please add ability to enter SSID with space.

suchmememanyskill commented 1 month ago

This issue is specific to the serial console, correct?

suchmememanyskill commented 4 weeks ago

Would

ssid Homer\ Simpson wifiPassWord

work for you? (Backslash escapes next character)

bwucke commented 3 weeks ago

@suchmememanyskill Since the console commands take a constant number of arguments, the escape would be best implemented in tokenize so that ssid still takes 2 arguments, just one of them contains space (after tokenize spaces are no longer a problem)

Want me to pick it up?

suchmememanyskill commented 3 weeks ago

@bwucke check dev, already implemented the backslash thing (not very well, but it works)