Method Signature
Parameters
The unique identifier of the plant to retrieve MAX devices from
Returns
Type:Result<serde_json::Value>
Returns a JSON value containing device list information. The response typically includes:
- Device array with MAX inverter details
- Device serial numbers and status
- Performance metrics
- Pagination information (if applicable)
Errors
This method can return the following errors:GrowattError::NotLoggedIn- User is not authenticatedGrowattError::RequestError- HTTP request failedGrowattError::InvalidResponse- Empty response or invalid structureGrowattError::JsonError- Failed to parse JSON response
Example
API Endpoint
POST/device/getMAXList
Form Parameters:
plantId- The plant identifiercurrPage- Current page number (defaults to “1”)
Notes
This method automatically handles session management. If the session has expired, it will attempt to re-authenticate using stored credentials before making the request.
The method currently defaults to page 1 (
currPage=1). For plants with many devices, you may need to implement pagination handling or use the get_devices_by_plant_list method which supports explicit page numbers.