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

Add DNS resolution for growatt server address #216

Closed
wants to merge 1 commit into from

Conversation

egguy
Copy link
Contributor

@egguy egguy commented Nov 3, 2022

A small patch, which allow to dynamically query the IP of the server.

It resolves by default server.growatt.com, so if one day they change their ip, it will self reconfigure (still need to stop and restart the server).

If an IP is put in the config, it won't change the behaviour.

@githubDante
Copy link
Contributor

This looks more like an issue in the comments/documentation. You can call socket.connect() directly with the server name i.e. connect((''server.growatt.com', 5279)) and the address will be resolved automatically.

@egguy
Copy link
Contributor Author

egguy commented Nov 4, 2022

Ho, yes, you're right.
Thanks for the information, I think my brain has stayed on C sockets programming.

Good catch.

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