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

Long Wifi Password results in "IndexError: bytearray index out of range" #815

Open
Jamolo5 opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@Jamolo5
Copy link

Jamolo5 commented Nov 19, 2024

When trying to set up a device, I run the command:
broadlink.setup('mywifi','some37characterlongpassword',3,ip_address='192.168.1.255')
Which results in

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jamo/.local/lib/python3.10/site-packages/broadlink/__init__.py", line 318, in setup
    payload[(pass_start + pass_length)] = ord(letter)
IndexError: bytearray index out of range

The original reason I was wanting to use this package is because the Broadlink app doesn't support my wifi password length

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

1 participant