diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PT3SBTProfileModule.m')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PT3SBTProfileModule.m | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PT3SBTProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PT3SBTProfileModule.m new file mode 100755 index 0000000..f96b663 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PT3SBTProfileModule.m | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | // | ||
| 2 | // POProfileModule.m | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 2016/12/4. | ||
| 6 | // Copyright © 2016年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "PT3SBTProfileModule.h" | ||
| 10 | |||
| 11 | @implementation PT3SBTProfileModule | ||
| 12 | |||
| 13 | |||
| 14 | RCT_EXPORT_MODULE() | ||
| 15 | |||
| 16 | #pragma mark | ||
| 17 | #pragma mark - constantsToExport | ||
| 18 | |||
| 19 | |||
| 20 | - (NSDictionary *)constantsToExport | ||
| 21 | { | ||
| 22 | return @{ | ||
| 23 | kACTION_SET_TIME:@"ACTION_SET_TIME", | ||
| 24 | kACTION_GET_BATTERY:@"ACTION_GET_BATTERY", | ||
| 25 | kACTION_SET_UNIT:@"ACTION_SET_UNIT", | ||
| 26 | kACTION_GET_UNIT:@"ACTION_GET_UNIT", | ||
| 27 | kACTION_GET_HISTORY_COUNT:@"ACTION_GET_HISTORY_COUNT", | ||
| 28 | kACTION_GET_HISTORY_DATA:@"ACTION_GET_HISTORY_DATA", | ||
| 29 | kACTION_DELETE_HISTORY_DATA:@"ACTION_DELETE_HISTORY_DATA", | ||
| 30 | kACTION_TEMPERATURE_MEASUREMENT:@"ACTION_TEMPERATURE_MEASUREMENT", | ||
| 31 | kACTION_PUB_UNIT:@"ACTION_PUB_UNIT", | ||
| 32 | kACTION_GET_ALL_CONNECTED_DEVICES:@"ACTION_GET_ALL_CONNECTED_DEVICES", | ||
| 33 | STATUS:@"STATUS", | ||
| 34 | BATTERY:@"BATTERY", | ||
| 35 | UNIT:@"UNIT", | ||
| 36 | TS:@"TS", | ||
| 37 | COUNT:@"COUNT", | ||
| 38 | TEMPERATURE:@"TEMPERATURE", | ||
| 39 | HISTORY:@"HISTORY", | ||
| 40 | }; | ||
| 41 | }; | ||
| 42 | |||
| 43 | |||
| 44 | + (BOOL)requiresMainQueueSetup | ||
| 45 | { | ||
| 46 | return YES; | ||
| 47 | } | ||
| 48 | |||
| 49 | @end | ||
