micropython / micropython/micropython-lib
umqtt/simple (connect)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 2.9k
- Forks
- 1.1k
- Ø Merge
- 7 T. 6 Std.
- Gemergte PRs (30 T.)
- 3
Beschreibung
Trying to run an example, came by: https://github.com/GoogleCloudPlatform/iot-core-micropython
It stops here:
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
and can't conclude de connection, any suggestion of what can be?
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 think the problem is about umqtt/simple.py
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit umqtt/simple.py Zeile 97 und dem Aufruf von get_mqtt_client in main.py in den Zeilen 170 und 190. Reproduziere den Verbindungsversuch auf MicroPython v1.12 mit dem ESP32-Beispiel und verfolge anschließend den bytes index error. Als erledigt gilt die Aufgabe, wenn das Beispiel die MQTT-Verbindung ohne die Ausnahme herstellt und Ursache sowie Verifizierung festgehalten sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- networking
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100