mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 07:34:54 +00:00
curtain changes
This commit is contained in:
@ -32,11 +32,14 @@ class DevicesAPI {
|
||||
static Future<Map<String, dynamic>> controlDevice(
|
||||
DeviceControlModel controlModel, String deviceId) async {
|
||||
try {
|
||||
print('controlDevice====${controlModel.toJson()}');
|
||||
print('controlDevice====${deviceId}');
|
||||
final response = await _httpService.post(
|
||||
path: ApiEndpoints.controlDevice.replaceAll('{deviceUuid}', deviceId),
|
||||
body: controlModel.toJson(),
|
||||
showServerMessage: false,
|
||||
expectedResponseModel: (json) {
|
||||
print('json====${json}');
|
||||
return json;
|
||||
},
|
||||
);
|
||||
@ -74,6 +77,7 @@ class DevicesAPI {
|
||||
path: ApiEndpoints.deviceFunctionsStatus.replaceAll('{deviceUuid}', deviceId),
|
||||
showServerMessage: false,
|
||||
expectedResponseModel: (json) {
|
||||
print('getDeviceStatus=$json');
|
||||
return json;
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user