Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
Jamolo5 opened this issue Nov 19, 2024 · 2 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

@ChrisAcrobat
Copy link

I'm having the same problem and with the same reason.

@ChrisAcrobat
Copy link

The device has a 32 character limit. #235 👎

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

No branches or pull requests

2 participants