Tuya iOS Smart Life App SDK 5.15.0
ThingSmartMatterDeviceOperation Class Reference

#import <ThingSmartMatterDeviceOperation.h>

Inheritance diagram for ThingSmartMatterDeviceOperation:

Instance Methods

(instancetype) - initWithDeviceModel:
 
(BOOL) - checkQueryPipelineAvailable
 Check the device query attributes command communicate channels available or not. More...
 
(void) - queryAttributeBasicInfo:failure:
 
(void) - queryMatterAttributes:success:failure:
 
(instancetype) - initWithDeviceModel:
 
(BOOL) - checkQueryPipelineAvailable
 Check the device query attributes command communicate channels available or not. More...
 
(void) - queryAttributeBasicInfo:failure:
 
(void) - queryMatterAttributes:success:failure:
 

Detailed Description

Definition at line 30 of file ThingSmartMatterDeviceOperation.h.

Method Documentation

◆ checkQueryPipelineAvailable [1/2]

- (BOOL) checkQueryPipelineAvailable

Check the device query attributes command communicate channels available or not.

◆ checkQueryPipelineAvailable [2/2]

- (BOOL) checkQueryPipelineAvailable

Check the device query attributes command communicate channels available or not.

◆ initWithDeviceModel: [1/2]

- (instancetype) initWithDeviceModel: (ThingSmartDeviceModel *)  deviceModel

Create a ThingSmartMatterDeviceOperation object with a ThingSmartDeviceModel object.

Parameters
deviceModelThe object of ThingSmartDeviceModel

◆ initWithDeviceModel: [2/2]

- (instancetype) initWithDeviceModel: (ThingSmartDeviceModel *)  deviceModel

Create a ThingSmartMatterDeviceOperation object with a ThingSmartDeviceModel object.

Parameters
deviceModelThe object of ThingSmartDeviceModel

◆ queryAttributeBasicInfo:failure: [1/2]

- (void) queryAttributeBasicInfo: (void(^)(ThingSmartMatterAttributeBasicInfo *info))  success
failure: (nullable ThingFailureError failure 

Query matter basic infomation.

Parameters
successsuccess.
failurefailure.

◆ queryAttributeBasicInfo:failure: [2/2]

- (void) queryAttributeBasicInfo: (void(^)(ThingSmartMatterAttributeBasicInfo *info))  success
failure: (nullable ThingFailureError failure 

Query matter basic infomation.

Parameters
successsuccess.
failurefailure.

◆ queryMatterAttributes:success:failure: [1/2]

- (void) queryMatterAttributes: (NSArray< NSDictionary * > *)  attributes
success: (ThingSuccessList success
failure: (nullable ThingFailureError failure 

Query matter device attributes info.

Input & Output Examples

// Input Example:
[{"endpointId": 0, "clusterId": 8, "attributeId": 2, "fabricFiltered": true/false},
{"endpointId": 0, "clusterId": 8, "attributeId": 3, "fabricFiltered": true/false}, ...]
// Output Exmaple:
// "payload"、"code" maybe empty.
[{"endpointId": 0, "clusterId": 8, "attributeId": 2, "payload": xxx},
{"endpointId": 0, "clusterId": 8, "attributeId": 3, "code": err_code}, ...]

Notice: Limit queries to fewer than 5 attributes at once

Parameters
attributesMatter attribute infos.
successsuccess.
failurefailure.

◆ queryMatterAttributes:success:failure: [2/2]

- (void) queryMatterAttributes: (NSArray< NSDictionary * > *)  attributes
success: (ThingSuccessList success
failure: (nullable ThingFailureError failure 

Query matter device attributes info.

Input & Output Examples

// Input Example:
[{"endpointId": 0, "clusterId": 8, "attributeId": 2, "fabricFiltered": true/false},
{"endpointId": 0, "clusterId": 8, "attributeId": 3, "fabricFiltered": true/false}, ...]
// Output Exmaple:
// "payload"、"code" maybe empty.
[{"endpointId": 0, "clusterId": 8, "attributeId": 2, "payload": xxx},
{"endpointId": 0, "clusterId": 8, "attributeId": 3, "code": err_code}, ...]

Notice: Limit queries to fewer than 5 attributes at once

Parameters
attributesMatter attribute infos.
successsuccess.
failurefailure.

The documentation for this class was generated from the following files: