Skip to content

_wait_for_msg raises empty MMQTTException when using iotcentral_device to connect to IoT Central #173

@garretjacobson

Description

@garretjacobson

Following the readme & examples of connecting to IoT Central found here I can't seem to connect successfully due to _wait_for_msg failing.

`Traceback (most recent call last):
File "code.py", line 105, in
File "/lib/adafruit_azureiot/iotcentral_device.py", line 184, in connect
File "/lib/adafruit_azureiot/iot_mqtt.py", line 434, in subscribe_to_twins
File "/lib/adafruit_azureiot/iot_mqtt.py", line 327, in _get_device_settings
File "/lib/adafruit_azureiot/iot_mqtt.py", line 465, in loop
File "/lib/adafruit_minimqtt/adafruit_minimqtt.py", line 1009, in loop
File "/lib/adafruit_minimqtt/adafruit_minimqtt.py", line 1037, in _wait_for_msg
MMQTTException:

Code done running.`

I'm using Pico W adafruit-circuitpython-raspberry_pi_pico_w-en_US-8.2.1 with adafruit-circuitpython-azureiot-8.x-mpy-2.5.15 and adafruit-circuitpython-minimqtt-8.x-mpy-7.4.1

I added back in a socket timeout removed with this specific change and it started to work again from what I've observed so far.

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