setFillLightMode method
Implementation
Future<Map<String, dynamic>> setFillLightMode(
String deviceSerial,
String mode, // "0"-B&W, "1"-FullColor, "2"-Smart
) async {
// V3 API - POST request, params in header & query
// Query param `mode`
// This might require updating EzvizClient to handle query parameters separately
// or embedding them in the path if http.post supports that.
return _client.post('/api/v3/device/fillLight/mode/set?mode=$mode', {
'deviceSerial': deviceSerial,
// accessToken is handled by the client
// 'mode': mode, // This should be a query parameter, not in body for typical POST
});
}