1
wei
2021-01-21 62d098cb78296feaa6f786a20748921338db838c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
//  MQTTStrict.h
//  MQTTClient
//
//  Created by Christoph Krey on 24.07.17.
//  Copyright © 2017 Christoph Krey. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
/** MQTTStrict controls the behaviour of MQTTClient with regards to parameter checking
 *  If strict is true, all parameters passed by the caller are checked before
 *  the corresponding message is send (CONNECT, PUBLISH, SUBSCRIBE, UNSUBSCRIBE)
 *  and an exception is thrown if any invalid values or inconsistencies are detected
 *
 *  If strict is false, parameters are used as passed by the caller.
 *  Messages will be sent "incorrectly" and
 *  parameter checking will be done on the broker end.
 *
 */
@interface MQTTStrict : NSObject
 
/** strict returns the current strict flag
 *  @return the strict flag
 */
+ (BOOL)strict;
 
/** setString sets the global strict flag
 *  @param strict the new strict flag
 */
+ (void)setStrict:(BOOL)strict;
 
@end