Skip to content

AT new CLIENTCONNECT commands with parameter for timeout #23

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

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

JAndrassy
Copy link
Contributor

The existing connect commands have a strict check for number of parameters so they can't be adopted for additional parameter without loosing compatibility of the library with older firmware.

There is no need to have extra command for connect with IP address. The connect with hostname uses hostByName which first attempts to convert the string to IP address. So my new AT commands with parameter timeout are simple CLIENTCONNECT and SSLCLIENTCONNECT. I think these commands should have timeout as optional parameter even the library will not use them without that parameter. (without timeout set, the library will use the commands which exists in older firmware )

There is no way to retrieve the default timeout of the esp32 WFiClient so I copied the current define for the default to use esp32 connect with parameter timeout only. This ensures that if CLIENTCONNECT is called without the timeout parameter, it will use the default value, not the last used value.

@pennam pennam merged commit da4f8b0 into arduino:main Feb 6, 2024
@JAndrassy JAndrassy deleted the at_client_connect_timeout branch February 6, 2024 16:16
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.

2 participants