Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OT CLI extension can't handle WiFi PSK with spaces (TZ-370) #39

Closed
gregbreen opened this issue Nov 1, 2023 · 3 comments
Closed

OT CLI extension can't handle WiFi PSK with spaces (TZ-370) #39

gregbreen opened this issue Nov 1, 2023 · 3 comments

Comments

@gregbreen
Copy link

The OT CLI extension can't correctly parse a PSK with spaces. Even if the PSK is wrapped in quotes. It's because it parses as arguments: https://github.com/espressif/esp-thread-br/blob/main/components/esp_ot_cli_extension/src/esp_ot_wifi_cmd.c#L211

@github-actions github-actions bot changed the title OT CLI extension can't handle WiFi PSK with spaces OT CLI extension can't handle WiFi PSK with spaces (TZ-370) Nov 1, 2023
@zwx1995esp
Copy link
Collaborator

Hi, if you want to input a space as a character of the PSK, you can use \ to escape it. For example, if your PSK is

espressif  123

then you can input

wifi connect -s myssid -p espressif\ \ 123

@zwx1995esp
Copy link
Collaborator

Hi, if you want to input a space as a character of the PSK, you can use \ to escape it. For example, if your PSK is

espressif  123

then you can input

wifi connect -s myssid -p espressif\ \ 123

@gregbreen Hi, I believe this can help you with your issue, so, could you please confirm that and if your issue is solved, could you please close this issue?

@chshu chshu closed this as completed Nov 13, 2023
@gregbreen
Copy link
Author

Ah OK thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants