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 custom values for MQTT_KEEPALIVE, MQTT_SOCKET_TIMEOUT #177

Closed
wants to merge 2 commits into from
Closed

Allow custom values for MQTT_KEEPALIVE, MQTT_SOCKET_TIMEOUT #177

wants to merge 2 commits into from

Conversation

karasinski
Copy link

Addresses issue #175. I'm not sure how you feel about optional values in the header declaration, so if this is annoying for you feel free to just take the first commit.

@knolleary
Copy link
Owner

Hi, the problem here is rather than just make them configurable, you've removed the constants from the header. That is a breaking change so I can't merge it. There's no reason not to Jeep those constants as the place the default values are defined if a sketch doesn't provide its own. That would be entirely backward compatible.

@knolleary
Copy link
Owner

I've just pushed a change that adds setKeepAlive() - allowing the constant to be overridden by the user's sketch. I'll be making a similar change for the socket timeout.

Given all of the other changes that have happened since this PR was first raised, and my comments above, I'm going to close this.

Thank you for taking the take to propose the change - my apologies it has taken so long to come to any resolution.

@knolleary knolleary closed this May 20, 2020
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

Successfully merging this pull request may close these issues.

3 participants