-
Notifications
You must be signed in to change notification settings - Fork 132
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
Console error when clicking the "Setup" button on a Shelly i3 #1317
Comments
Exactly the same error with 2.10.1 but on a different line.
|
These are the relevant values used in variable {
"id": 8583,
"src": "shellyix3-E8DB84D29388",
"result": {
"device_id": "shellyix3-EADB84D29388",
"wifi_ssid": "ευχαριστια (2,4 GHz)",
"wifi_pass_h": "531c54f836448b73c580bbacae32bd23"
}
} |
The non ASCII characters in SSID are definitely the cause of this bug as the sha256 function uses https://github.com/geraintluff/sha256 which mentions:
What about:
function isASCII(str) {
return /^[\x00-\x7F]*$/.test(str);
}
|
This issue is stale because it has been open 3 weeks with no activity. Comment or this will be closed in 1 week. |
We already hat that issue multiple times, so we should take a deeper look on that. Not sure on the impact on existing setups and about maybe needed changes in the C code. |
If you use option 2, nothing would change in existing setups. I tested option 3 on ShellyI3, Shelly25 & ShellyPlugS and works fine. |
Which is the last line of:
Please help. Happy to test something!
The text was updated successfully, but these errors were encountered: