// // MyMQTT.h // myWear // // Created by xTT on 2017/2/24. // Copyright © 2017年 xTT. All rights reserved. // #import #import "MQTTSessionManager.h" #import #import "Circle.h" #define PUSH_type_deviceNowLocation @"deviceNowLocation"//设备当前定位 #define PUSH_type_deviceAccountMessage @"accountMessage"//远程拍照 #define PUSH_type_deviceEnterRail @"deviceEnterRail"//设备进入安全区域 #define PUSH_type_deviceLeaveRail @"deviceLeaveRail"//设备离开安全区域 #define PUSH_type_chatGroupEnter @"chatGroupEnter"//进入圈子 #define PUSH_type_chatGroupRemove @"chatGroupRemove"//用户离开聊天群 #define PUSH_type_chatGroupMessage @"chatGroupMessage"//新聊天消息到达 #define PUSH_type_chatGroupDisband @"chatGroupDisband"//聊天群解散 #define xMyMQTT [MyMQTT sharedClient] @interface MyMQTT : NSObject @property (strong, nonatomic) MQTTSessionManager *manager; @property (strong, nonatomic) NSDictionary *mqttSettings; + (instancetype)sharedClient; - (void)setSubscriptions:(id)obj; - (void)sendMsg:(NSString *)msg circle:(Circle *)circle; @end