Tuya iOS Smart Life App SDK 5.15.0
ThingSmartDeviceEventUtil Class Reference

#import <ThingSmartDeviceEventUtil.h>

Inheritance diagram for ThingSmartDeviceEventUtil:

Class Methods

(void) + successEventWithPipelineType:
 
(void) + failedEventWithPipelineType:pv:error:extendInfo:
 
(void) + thingsdkControlEventWithAttribute:
 
(void) + thingsdkLanControlEventWithAttribute:
 
(void) + thingsdkLanConnectedEventWithAttribute:
 
(void) + thingsdkThingModelControlWithAttribute:
 
(void) + thingsdkRecordEventForPubishDps:devId:src:
 Record the publish dps event. More...
 
(void) + thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders:
 
(void) + thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end:
 
(void) + thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error:
 
(void) + reportDps:deviceModel:communicationType:isPublish:extend:
 Report dp message. More...
 
(void) + thingsdkRecordLocalConnectWithDevId:
 Record the local connect device event. More...
 
(void) + successEventWithPipelineType:
 
(void) + failedEventWithPipelineType:pv:error:extendInfo:
 
(void) + thingsdkControlEventWithAttribute:
 
(void) + thingsdkLanControlEventWithAttribute:
 
(void) + thingsdkLanConnectedEventWithAttribute:
 
(void) + thingsdkThingModelControlWithAttribute:
 
(void) + thingsdkRecordEventForPubishDps:devId:src:
 Record the publish dps event. More...
 
(void) + thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders:
 
(void) + thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end:
 
(void) + thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error:
 
(void) + reportDps:deviceModel:communicationType:isPublish:extend:
 Report dp message. More...
 
(void) + thingsdkRecordLocalConnectWithDevId:
 Record the local connect device event. More...
 
(void) + successEventWithPipelineType:
 
(void) + failedEventWithPipelineType:pv:error:extendInfo:
 
(void) + thingsdkControlEventWithAttribute:
 
(void) + thingsdkLanControlEventWithAttribute:
 
(void) + thingsdkLanConnectedEventWithAttribute:
 
(void) + thingsdkThingModelControlWithAttribute:
 
(void) + thingsdkRecordEventForPubishDps:devId:src:
 Record the publish dps event. More...
 
(void) + thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders:
 
(void) + thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end:
 
(void) + thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error:
 
(void) + reportDps:deviceModel:communicationType:isPublish:extend:
 Report dp message. More...
 
(void) + thingsdkRecordLocalConnectWithDevId:
 Record the local connect device event. More...
 
(void) + successEventWithPipelineType:
 
(void) + failedEventWithPipelineType:pv:error:extendInfo:
 
(void) + thingsdkControlEventWithAttribute:
 
(void) + thingsdkLanControlEventWithAttribute:
 
(void) + thingsdkLanConnectedEventWithAttribute:
 
(void) + thingsdkThingModelControlWithAttribute:
 
(void) + thingsdkRecordEventForPubishDps:devId:src:
 Record the publish dps event. More...
 
(void) + thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders:
 
(void) + thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end:
 
(void) + thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error:
 
(void) + reportDps:deviceModel:communicationType:isPublish:extend:
 Report dp message. More...
 
(void) + thingsdkRecordLocalConnectWithDevId:
 Record the local connect device event. More...
 

Detailed Description

Definition at line 142 of file ThingSmartDeviceEventUtil.h.

Method Documentation

◆ failedEventWithPipelineType:pv:error:extendInfo: [1/4]

+ (void) failedEventWithPipelineType: (ThingEventPipelineType)  pipelineType
pv: (double)  pv
error: (NSError *)  error
extendInfo: (NSDictionary *)  extendInfo 

The message sending request failed.

Parameters
pipelineTypeThe message sending pipeline.
pvThe device protocol version that is used when the message is sent.
errorAn error occurs while processing the request.
extendInfoDetailed error information, in which you can easily check the status of the error and the app condition.

◆ failedEventWithPipelineType:pv:error:extendInfo: [2/4]

+ (void) failedEventWithPipelineType: (ThingEventPipelineType)  pipelineType
pv: (double)  pv
error: (NSError *)  error
extendInfo: (NSDictionary *)  extendInfo 

The message sending request failed.

Parameters
pipelineTypeThe message sending pipeline.
pvThe device protocol version that is used when the message is sent.
errorAn error occurs while processing the request.
extendInfoDetailed error information, in which you can easily check the status of the error and the app condition.

◆ failedEventWithPipelineType:pv:error:extendInfo: [3/4]

+ (void) failedEventWithPipelineType: (ThingEventPipelineType)  pipelineType
pv: (double)  pv
error: (NSError *)  error
extendInfo: (NSDictionary *)  extendInfo 

The message sending request failed.

Parameters
pipelineTypeThe message sending pipeline.
pvThe device protocol version that is used when the message is sent.
errorAn error occurs while processing the request.
extendInfoDetailed error information, in which you can easily check the status of the error and the app condition.

◆ failedEventWithPipelineType:pv:error:extendInfo: [4/4]

+ (void) failedEventWithPipelineType: (ThingEventPipelineType)  pipelineType
pv: (double)  pv
error: (NSError *)  error
extendInfo: (NSDictionary *)  extendInfo 

The message sending request failed.

Parameters
pipelineTypeThe message sending pipeline.
pvThe device protocol version that is used when the message is sent.
errorAn error occurs while processing the request.
extendInfoDetailed error information, in which you can easily check the status of the error and the app condition.

◆ reportDps:deviceModel:communicationType:isPublish:extend: [1/4]

+ (void) reportDps: (NSDictionary *)  dps
deviceModel: (ThingSmartDeviceModel *)  deviceModel
communicationType: (ThingCommunicationType)  source
isPublish: (BOOL)  isPushlish
extend: (nullable NSDictionary *)  extend 

Report dp message.

◆ reportDps:deviceModel:communicationType:isPublish:extend: [2/4]

+ (void) reportDps: (NSDictionary *)  dps
deviceModel: (ThingSmartDeviceModel *)  deviceModel
communicationType: (ThingCommunicationType)  source
isPublish: (BOOL)  isPushlish
extend: (nullable NSDictionary *)  extend 

Report dp message.

◆ reportDps:deviceModel:communicationType:isPublish:extend: [3/4]

+ (void) reportDps: (NSDictionary *)  dps
deviceModel: (ThingSmartDeviceModel *)  deviceModel
communicationType: (ThingCommunicationType)  source
isPublish: (BOOL)  isPushlish
extend: (nullable NSDictionary *)  extend 

Report dp message.

◆ reportDps:deviceModel:communicationType:isPublish:extend: [4/4]

+ (void) reportDps: (NSDictionary *)  dps
deviceModel: (ThingSmartDeviceModel *)  deviceModel
communicationType: (ThingCommunicationType)  source
isPublish: (BOOL)  isPushlish
extend: (nullable NSDictionary *)  extend 

Report dp message.

◆ successEventWithPipelineType: [1/4]

+ (void) successEventWithPipelineType: (ThingEventPipelineType)  pipelineType

The message sending request is successful.

Parameters
pipelineTypeThe message sending pipeline.

◆ successEventWithPipelineType: [2/4]

+ (void) successEventWithPipelineType: (ThingEventPipelineType)  pipelineType

The message sending request is successful.

Parameters
pipelineTypeThe message sending pipeline.

◆ successEventWithPipelineType: [3/4]

+ (void) successEventWithPipelineType: (ThingEventPipelineType)  pipelineType

The message sending request is successful.

Parameters
pipelineTypeThe message sending pipeline.

◆ successEventWithPipelineType: [4/4]

+ (void) successEventWithPipelineType: (ThingEventPipelineType)  pipelineType

The message sending request is successful.

Parameters
pipelineTypeThe message sending pipeline.

◆ thingsdkControlEventWithAttribute: [1/4]

+ (void) thingsdkControlEventWithAttribute: (NSDictionary *)  attribute

The message for public demend

Parameters
attributeThe attribute dictionary.

◆ thingsdkControlEventWithAttribute: [2/4]

+ (void) thingsdkControlEventWithAttribute: (NSDictionary *)  attribute

The message for public demend

Parameters
attributeThe attribute dictionary.

◆ thingsdkControlEventWithAttribute: [3/4]

+ (void) thingsdkControlEventWithAttribute: (NSDictionary *)  attribute

The message for public demend

Parameters
attributeThe attribute dictionary.

◆ thingsdkControlEventWithAttribute: [4/4]

+ (void) thingsdkControlEventWithAttribute: (NSDictionary *)  attribute

The message for public demend

Parameters
attributeThe attribute dictionary.

◆ thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders: [1/4]

+ (void) thingsdkDpBuriedPublishDevice: (ThingSmartDeviceModel *)  device
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (NSError *)  error
orders: (NSArray *)  orders 

The message for device publish dp. error code reference to ThingEventDpOptCode

◆ thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders: [2/4]

+ (void) thingsdkDpBuriedPublishDevice: (ThingSmartDeviceModel *)  device
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (NSError *)  error
orders: (NSArray *)  orders 

The message for device publish dp. error code reference to ThingEventDpOptCode

◆ thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders: [3/4]

+ (void) thingsdkDpBuriedPublishDevice: (ThingSmartDeviceModel *)  device
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (NSError *)  error
orders: (NSArray *)  orders 

The message for device publish dp. error code reference to ThingEventDpOptCode

◆ thingsdkDpBuriedPublishDevice:dps:pipeline:error:orders: [4/4]

+ (void) thingsdkDpBuriedPublishDevice: (ThingSmartDeviceModel *)  device
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (NSError *)  error
orders: (NSArray *)  orders 

The message for device publish dp. error code reference to ThingEventDpOptCode

◆ thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end: [1/4]

+ (void) thingsdkDpBuriedPublishGroup: (ThingSmartGroupModel *)  group
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (nullable NSError *)  error
start: (NSDate *)  start
end: (NSDate *)  end 

The message for group publish dp. error code reference to ThingEventDpOptCode Deprecated

◆ thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end: [2/4]

+ (void) thingsdkDpBuriedPublishGroup: (ThingSmartGroupModel *)  group
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (nullable NSError *)  error
start: (NSDate *)  start
end: (NSDate *)  end 

The message for group publish dp. error code reference to ThingEventDpOptCode Deprecated

◆ thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end: [3/4]

+ (void) thingsdkDpBuriedPublishGroup: (ThingSmartGroupModel *)  group
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (nullable NSError *)  error
start: (NSDate *)  start
end: (NSDate *)  end 

The message for group publish dp. error code reference to ThingEventDpOptCode Deprecated

◆ thingsdkDpBuriedPublishGroup:dps:pipeline:error:start:end: [4/4]

+ (void) thingsdkDpBuriedPublishGroup: (ThingSmartGroupModel *)  group
dps: (NSDictionary *)  dps
pipeline: (NSInteger)  pipeline
error: (nullable NSError *)  error
start: (NSDate *)  start
end: (NSDate *)  end 

The message for group publish dp. error code reference to ThingEventDpOptCode Deprecated

◆ thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error: [1/4]

+ (void) thingsdkDpBuriedReportFailWithDevId: (nullable NSString *)  devId
orGroupId: (nullable NSString *)  groupId
dps: (NSDictionary *)  dps
error: (NSError *)  error 

The message for dp update fail. error code reference to ThingEventDpOptCode

◆ thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error: [2/4]

+ (void) thingsdkDpBuriedReportFailWithDevId: (nullable NSString *)  devId
orGroupId: (nullable NSString *)  groupId
dps: (NSDictionary *)  dps
error: (NSError *)  error 

The message for dp update fail. error code reference to ThingEventDpOptCode

◆ thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error: [3/4]

+ (void) thingsdkDpBuriedReportFailWithDevId: (nullable NSString *)  devId
orGroupId: (nullable NSString *)  groupId
dps: (NSDictionary *)  dps
error: (NSError *)  error 

The message for dp update fail. error code reference to ThingEventDpOptCode

◆ thingsdkDpBuriedReportFailWithDevId:orGroupId:dps:error: [4/4]

+ (void) thingsdkDpBuriedReportFailWithDevId: (nullable NSString *)  devId
orGroupId: (nullable NSString *)  groupId
dps: (NSDictionary *)  dps
error: (NSError *)  error 

The message for dp update fail. error code reference to ThingEventDpOptCode

◆ thingsdkLanConnectedEventWithAttribute: [1/4]

+ (void) thingsdkLanConnectedEventWithAttribute: (NSDictionary *)  attribute

The message for lan connect. report mqtt status & cloudOnline

Parameters
attributeThe attribute dictionary.

◆ thingsdkLanConnectedEventWithAttribute: [2/4]

+ (void) thingsdkLanConnectedEventWithAttribute: (NSDictionary *)  attribute

The message for lan connect. report mqtt status & cloudOnline

Parameters
attributeThe attribute dictionary.

◆ thingsdkLanConnectedEventWithAttribute: [3/4]

+ (void) thingsdkLanConnectedEventWithAttribute: (NSDictionary *)  attribute

The message for lan connect. report mqtt status & cloudOnline

Parameters
attributeThe attribute dictionary.

◆ thingsdkLanConnectedEventWithAttribute: [4/4]

+ (void) thingsdkLanConnectedEventWithAttribute: (NSDictionary *)  attribute

The message for lan connect. report mqtt status & cloudOnline

Parameters
attributeThe attribute dictionary.

◆ thingsdkLanControlEventWithAttribute: [1/4]

+ (void) thingsdkLanControlEventWithAttribute: (NSDictionary *)  attribute

The message for lan control. report mqtt status

Parameters
attributeThe attribute dictionary.

◆ thingsdkLanControlEventWithAttribute: [2/4]

+ (void) thingsdkLanControlEventWithAttribute: (NSDictionary *)  attribute

The message for lan control. report mqtt status

Parameters
attributeThe attribute dictionary.

◆ thingsdkLanControlEventWithAttribute: [3/4]

+ (void) thingsdkLanControlEventWithAttribute: (NSDictionary *)  attribute

The message for lan control. report mqtt status

Parameters
attributeThe attribute dictionary.

◆ thingsdkLanControlEventWithAttribute: [4/4]

+ (void) thingsdkLanControlEventWithAttribute: (NSDictionary *)  attribute

The message for lan control. report mqtt status

Parameters
attributeThe attribute dictionary.

◆ thingsdkRecordEventForPubishDps:devId:src: [1/4]

+ (void) thingsdkRecordEventForPubishDps: (NSDictionary *)  dps
devId: (NSString *)  devId
src: (ThingEventPubishDpSrc)  src 

Record the publish dps event.

◆ thingsdkRecordEventForPubishDps:devId:src: [2/4]

+ (void) thingsdkRecordEventForPubishDps: (NSDictionary *)  dps
devId: (NSString *)  devId
src: (ThingEventPubishDpSrc)  src 

Record the publish dps event.

◆ thingsdkRecordEventForPubishDps:devId:src: [3/4]

+ (void) thingsdkRecordEventForPubishDps: (NSDictionary *)  dps
devId: (NSString *)  devId
src: (ThingEventPubishDpSrc)  src 

Record the publish dps event.

◆ thingsdkRecordEventForPubishDps:devId:src: [4/4]

+ (void) thingsdkRecordEventForPubishDps: (NSDictionary *)  dps
devId: (NSString *)  devId
src: (ThingEventPubishDpSrc)  src 

Record the publish dps event.

◆ thingsdkRecordLocalConnectWithDevId: [1/4]

+ (void) thingsdkRecordLocalConnectWithDevId: (NSString *)  devId

Record the local connect device event.

◆ thingsdkRecordLocalConnectWithDevId: [2/4]

+ (void) thingsdkRecordLocalConnectWithDevId: (NSString *)  devId

Record the local connect device event.

◆ thingsdkRecordLocalConnectWithDevId: [3/4]

+ (void) thingsdkRecordLocalConnectWithDevId: (NSString *)  devId

Record the local connect device event.

◆ thingsdkRecordLocalConnectWithDevId: [4/4]

+ (void) thingsdkRecordLocalConnectWithDevId: (NSString *)  devId

Record the local connect device event.

◆ thingsdkThingModelControlWithAttribute: [1/4]

+ (void) thingsdkThingModelControlWithAttribute: (NSDictionary *)  attribute

◆ thingsdkThingModelControlWithAttribute: [2/4]

+ (void) thingsdkThingModelControlWithAttribute: (NSDictionary *)  attribute

◆ thingsdkThingModelControlWithAttribute: [3/4]

+ (void) thingsdkThingModelControlWithAttribute: (NSDictionary *)  attribute

◆ thingsdkThingModelControlWithAttribute: [4/4]

+ (void) thingsdkThingModelControlWithAttribute: (NSDictionary *)  attribute

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