-
Notifications
You must be signed in to change notification settings - Fork 51
Error after updating to 5.0.4 - Feathers2 #73
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
Comments
@ghayne What version of CircuitPython are you running on the FeatherS2? What does your |
@brentru CircuitPython 6.2.0-beta.3 - I tried -beta-2 too. It,s failing on Connecting to a local MQTT server on port 1883 with parameters:
|
Try:
|
Same error I'm afraid! |
I'm getting the same error. I edited a copy of adafruit_minimqtt.py to remove the eight lines most recently added, and the error goes away. Using:
|
I think i know what this might be. Im using an insecure port and no logger and it fails because": line 230: the problem is the else doesnt check if there is a logger, it crashes becaule logger is none the work around is to add a logger and it works Brian |
posslbly: elif self.logger instead of else? |
Thanks for posting this, getting the same thing on my Metro ESP32-S2. Adding elif self.logger worked for me. For whatever reason (I'm new to this) configuring a logger for my code.py worked, but still failed for the MQTT module. |
@wx-watch - did you pass the logger to minimqtt like this:
|
@wx-watch - on further consideration the code:
is functionally the same but more clearly reflects what's being done. |
@ghayne Ah! First time using a logger here. I had not done: ...and now it works with the original code. Thanks all! |
@ghayne I do not see this issue anymore since updating to 5.0.5 - do you still see the issue? I tested on an ESP32-S2 Metro and ESP32-S2 MagTag with the latest version of this library |
@brentru I missed the update, I'll try it tomorrow. I hate timezones :) |
@brentru I couldn't resist trying it - works perfectly, thank you. I'll close the issue. |
After updating to 5.0.4 on my Feathers2 I am getting the following error, the code was working on 5.0.0.
Traceback (most recent call last):
File "", line 1, in
File "codeold.py", line 86, in
File "adafruit_minimqtt/adafruit_minimqtt.py", line 437, in connect
File "adafruit_minimqtt/adafruit_minimqtt.py", line 235, in _get_connect_socket
AttributeError: 'NoneType' object has no attribute 'info'
The text was updated successfully, but these errors were encountered: