This commit is contained in:
mohammad
2024-09-30 17:30:16 +03:00
parent fed39b7198
commit b8b6ec67c7
7 changed files with 74 additions and 48 deletions

View File

@ -33,6 +33,7 @@ class DevicesAPI {
static Future<Map<String, dynamic>> controlDevice(
DeviceControlModel controlModel, String deviceId) async {
try {
print(controlModel.toJson());
final response = await _httpService.post(
path: ApiEndpoints.controlDevice.replaceAll('{deviceUuid}', deviceId),
body: controlModel.toJson(),