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

Increase server name length in MQTT_FONA.h #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CharlMeyers
Copy link

  • Increase the amount of characters to copy server name in the
    connectServer method from 40 to 60 to allow connecting to servers
    with a slightly longer FQDN

Thank you for creating a pull request to contribute to Adafruit's GitHub code!
Before you open the request please review the following guidelines and tips to
help it be more easily integrated:

  • Describe the scope of your change--i.e. what the change does and what parts
    of the code were modified.
    This modifies the server connection funcionality when connecting over GPRS with the FONA library. I updated the MQTT_FONA.h file.

  • Describe any known limitations with your change. This will still limit server name FQDN to 60 characters and not allow connections to them.

  • Please run any tests or examples that can exercise your modified code. Try to connect to door-lock-dev.westeurope.azurecontainer.io on port 1883 to see if you can successfully connect to it. I will leave the connection open to anonymous connections until the pull request is approved. This URL is 42 characters long and before this change connecting to the server was not possible, after I made this change I was able to connect to it

- Increase the amount of characters to copy server name in the
`connectServer` method from 40 to 60 to allow connecting to servers
with a slightly longer FQDN
@CharlMeyers CharlMeyers marked this pull request as ready for review July 2, 2021 16:46
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.

1 participant