new
Creates a new Growatt client with default configuration.Returns
Returns a newGrowatt instance with:
- Base URL set to
https://server.growatt.com - HTTP client configured with cookie storage
- Session duration of 30 minutes
- No credentials (requires manual login)
Example
The client automatically manages cookies and session state. You only need to call
login() once.default
Creates a new Growatt client using theDefault trait implementation.
Returns
Returns a newGrowatt instance with the same configuration as new().
Example
This method is functionally identical to
new() and is provided for convenience when using trait-based initialization patterns.