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

allow to set socket timeout #112

Closed
vladak opened this issue Aug 16, 2022 · 0 comments
Closed

allow to set socket timeout #112

vladak opened this issue Aug 16, 2022 · 0 comments

Comments

@vladak
Copy link
Contributor

vladak commented Aug 16, 2022

The socket timeout is set in

however _get_connect_socket() is called without the timeout argument
self._sock = self._get_connect_socket(self.broker, self.port)
which means the timeout is always 1 - assuming this is in seconds, the doc does not say:
:param int timeout: Desired socket timeout

It would be nice if the socket timeout could be set in the MQTT instance.

After issues like #81 or #110 are fixed, it will be useful.

vladak added a commit to vladak/Adafruit_CircuitPython_MiniMQTT that referenced this issue Aug 17, 2022
rtwfroody pushed a commit to rtwfroody/Adafruit_CircuitPython_MiniMQTT that referenced this issue Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant