AWSIoTMQTTLastWillAndTestament
Objective-C
@interface AWSIoTMQTTLastWillAndTestament: NSObject
/**
The topic to publish the Last Will and Testament message to. Default
value: @"".
*/
@property(nonatomic, strong) NSString *topic;
/**
The Last Will and Testament message. Default value: @"".
*/
@property(nonatomic, strong) NSString *message;
/**
The Quality of Service to use when publishing the Last Will and Testament
message. Default value: AWSIoTMQTTQoSAtMostOnce.
*/
@property(nonatomic, assign) AWSIoTMQTTQoS qos;
/**
Sets the retain flag for the Will and Testament
*/
@property (nonatomic, assign) BOOL willRetain;
@end
Swift
class AWSIoTMQTTLastWillAndTestament : NSObject
Undocumented
-
The topic to publish the Last Will and Testament message to. Default value: @“”.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull topic;
Swift
var topic: String { get set }
-
The Last Will and Testament message. Default value: @“”.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull message;
Swift
var message: String { get set }
-
The Quality of Service to use when publishing the Last Will and Testament message. Default value: AWSIoTMQTTQoSAtMostOnce.
Declaration
Objective-C
@property (nonatomic) AWSIoTMQTTQoS qos;
Swift
var qos: AWSIoTMQTTQoS { get set }
-
Sets the retain flag for the Will and Testament
Declaration
Objective-C
@property (nonatomic) BOOL willRetain;
Swift
var willRetain: Bool { get set }