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

Erro ao conectar com a central #1

Open
sergiobaiao opened this issue May 27, 2023 · 0 comments
Open

Erro ao conectar com a central #1

sergiobaiao opened this issue May 27, 2023 · 0 comments

Comments

@sergiobaiao
Copy link

Ola,

estou tentando utilizar seu codigo para conectar na minha central amt 8000
minha central usa senha de 6 digitos, não sei se por isso não está conectando.

segue a mensagem que apresenta quando rodo o codigo:

root@nas:/files/isecnet# python3 app.py
2023-05-26 22:12:13,207 alarm - INFO - Iniciando...
2023-05-26 22:12:13,207 alarm - INFO - Estabelecendo conexão com o servidor MQTT...
2023-05-26 22:12:13,208 alarm - INFO - Conexão MQTT OK.
2023-05-26 22:12:13,208 alarm - INFO - Enviando status da Central para o servidor MQTT...
2023-05-26 22:12:13,215 alarm - ERROR - Erro ao requisitar o status da Central
2023-05-26 22:12:13,215 alarm - ERROR - list index out of range
Traceback (most recent call last):
File "/docker/isecnet/app.py", line 18, in mqtt_send_alarm_status
alarm_status = alarm.request_partial_status()
File "/docker/isecnet/lib/alarm.py", line 110, in request_partial_status
alarm_status.is_partitioned = True if _int_to_binary(response[28])[7] == '1' else False
IndexError: list index out of range
^CTraceback (most recent call last):
File "/docker/isecnet/app.py", line 96, in
time.sleep(1)
KeyboardInterrupt

Consegue me ajudar?

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