formatDeviceDisk method
Implementation
Future<Map<String, dynamic>> formatDeviceDisk(
String deviceSerial,
String diskIndex,
) async {
// V3 API - PUT request. EzvizClient.post might not work directly.
// This will likely require EzvizClient to be updated to support PUT requests
// and potentially different ways of passing parameters (e.g., query vs body for PUT).
return _client.post('/api/v3/device/format/disk?diskIndex=$diskIndex', {
'deviceSerial': deviceSerial,
// 'diskIndex': diskIndex // Query parameter
});
}