Contents

requestConstraintBasedForecast(with:completion:)

Command RequestConstraintBasedForecast

Declaration

func requestConstraintBasedForecast(with params: MTRDeviceEnergyManagementClusterRequestConstraintBasedForecastParams, completion: @escaping  @Sendable ((any Error)?) -> Void)
func requestConstraintBasedForecast(with params: MTRDeviceEnergyManagementClusterRequestConstraintBasedForecastParams) async throws

Discussion

Allows a client to ask the ESA to recompute its Forecast based on power and time constraints.