summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PT3SBTProfileModule.m
blob: f96b6632b54556cbcd687ac71f2a1ee92158718d (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
//  POProfileModule.m
//  ReactNativeIOSLibrary
//
//  Created by daiqingquan on 2016/12/4.
//  Copyright © 2016年 daiqingquan. All rights reserved.
//

#import "PT3SBTProfileModule.h"

@implementation PT3SBTProfileModule


RCT_EXPORT_MODULE()

#pragma mark
#pragma mark - constantsToExport


- (NSDictionary *)constantsToExport
{
    return @{
             kACTION_SET_TIME:@"ACTION_SET_TIME",
             kACTION_GET_BATTERY:@"ACTION_GET_BATTERY",
             kACTION_SET_UNIT:@"ACTION_SET_UNIT",
             kACTION_GET_UNIT:@"ACTION_GET_UNIT",
             kACTION_GET_HISTORY_COUNT:@"ACTION_GET_HISTORY_COUNT",
             kACTION_GET_HISTORY_DATA:@"ACTION_GET_HISTORY_DATA",
             kACTION_DELETE_HISTORY_DATA:@"ACTION_DELETE_HISTORY_DATA",
             kACTION_TEMPERATURE_MEASUREMENT:@"ACTION_TEMPERATURE_MEASUREMENT",
             kACTION_PUB_UNIT:@"ACTION_PUB_UNIT",
             kACTION_GET_ALL_CONNECTED_DEVICES:@"ACTION_GET_ALL_CONNECTED_DEVICES",
             STATUS:@"STATUS",
             BATTERY:@"BATTERY",
             UNIT:@"UNIT",
             TS:@"TS",
             COUNT:@"COUNT",
             TEMPERATURE:@"TEMPERATURE",
             HISTORY:@"HISTORY",
             };
};


+ (BOOL)requiresMainQueueSetup
{
    return YES;
}

@end