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

Connect problems using github example code on an esp32-s2 feather #111

Closed
blackMagic001 opened this issue Jul 23, 2022 · 2 comments
Closed
Assignees
Labels
bug Something isn't working needs-investigation

Comments

@blackMagic001
Copy link

blackMagic001 commented Jul 23, 2022

Hi @brentru @kattni ,

I have been unable to connect to io.adafruit by mqtt, and I wonder if it is the minimqtt library. I am using the example code below with zero changes.

Code: /examples/minimqtt_simpletest.py

Board: Adafruit Esp32-S2 Feather

Firmware: CircuitPython 7.3.2

secrets = {
'ssid' : '[deleted]',
'password' : '[deleted]',
'aio_username' : '[deleted]',
'aio_key' : '[deleted]',
'timezone' : "America/New_York", # http://worldtimeapi.org/timezones
'broker' : 'io.adafruit.com',
'port' : 1883
}

Output:
Connecting to [home network]
Connected to [home network]!
Attempting to connect to io.adafruit.com
Traceback (most recent call last):
File "code.py", line 97, in
File "adafruit_minimqtt/adafruit_minimqtt.py", line 441, in connect
File "adafruit_minimqtt/adafruit_minimqtt.py", line 254, in _get_connect_socket
TypeError: extra positional arguments given

I was having similar errors using the Unexpected Maker ESP32-S2 as well.

Possibly related issues?
#3836
#4394
I should note that the issues on these links may be specific to the Unexpected Maker board. I may post a separate issue on this later.

@vladak
Copy link
Contributor

vladak commented Jan 12, 2023

This was reported in 2022 against unknown MiniMQTT version. Chances are that some old MiniMQTT version was used that did not have the changes for PR #94.

@brentru brentru added bug Something isn't working needs-investigation labels Apr 11, 2023
@brentru brentru self-assigned this Apr 11, 2023
@brentru
Copy link
Member

brentru commented Apr 24, 2023

Unable to replicate this issue on Adafruit CircuitPython 8.0.5 on 2023-03-31; Adafruit FunHouse with ESP32S2.

Looks like it was solved via #94.

Please update to the latest version of MiniMQTT and CircuitPython.

@brentru brentru closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-investigation
Projects
None yet
Development

No branches or pull requests

3 participants