You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

47 lines
1.2 KiB

//
// MyMQTT.h
// myWear
//
// Created by xTT on 2017/2/24.
// Copyright © 2017年 xTT. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MQTTSessionManager.h"
#import <CommonCrypto/CommonHMAC.h>
#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<MQTTSessionManagerDelegate>
@property (strong, nonatomic) MQTTSessionManager *manager;
@property (strong, nonatomic) NSDictionary *mqttSettings;
+ (instancetype)sharedClient;
- (void)setSubscriptions:(id)obj;
- (void)sendMsg:(NSString *)msg circle:(Circle *)circle;
@end