Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Can't run main #14

@Tayaah

Description

@Tayaah

Well, I've done everything, and now is just run the code (wish it was)

It stops here, and can't conclude de connection, any suggestion of what can be my mistake?

Creating JWT...
Sending message with password eyJ0eXAiOiAiSl
[...]
JWId1Qjmb4BjjKHPLITppMbzo1FDBigdmqmw_CwUQXjB2mUyRX8QcUw6ApvZTP98yfrc7gP0lc5eQmVZR0xsSmBlJM_iGJp1vJhkwirpIeXgnILO9w==
Traceback (most recent call last):
File "main.py", line 190, in
File "main.py", line 170, in get_mqtt_client
File "umqtt/simple.py", line 97, in connect
IndexError: bytes index out of range
MicroPython v1.12 on 2019-12-20; ESP32 module with ESP32

follow line 190 in main.py:

client = get_mqtt_client(config.google_cloud_config['project_id'], config.google_cloud_config['cloud_region'], config.google_cloud_config['registry_id'], config.google_cloud_config['device_id'], jwt)

I suppose that is something easy, similar to #12 (?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions