From 2185d070af8c8e942042610a030b460cc75c716c Mon Sep 17 00:00:00 2001 From: Piccolo Date: Wed, 2 May 2018 17:44:03 +0800 Subject: [PATCH] rm copy h files --- RAFSUSDKActiveReportInfo.h | 16 --- RAFSUSDKBase.h | 32 ----- RAFSUSDKBaseDelegate.h | 19 --- RAFSUSDKDetectInfo.h | 25 ---- RAFSUSDKDoActionInfo.h | 19 --- RAFSUSDKDoParameterInfo.h | 20 --- RAFSUSDKEthernetParameterInfo.h | 26 ---- RAFSUSDKHeartBeatInfo.h | 73 ----------- RAFSUSDKLockInfo.h | 20 --- RAFSUSDKMotorActionInfo.h | 28 ----- RAFSUSDKOnlineOpenInfo.h | 22 ---- RAFSUSDKPPPAddressInfo.h | 22 ---- RAFSUSDKPeripheral.h | 17 --- RAFSUSDKPublicCommon.h | 22 ---- RAFSUSDKPublicDefine.h | 52 -------- RAFSUSDKPublicTypeEnum.h | 114 ------------------ RAFSUSDKResultInfo.h | 23 ---- RAFSUSDKServiceInfo.h | 20 --- RAFSUSDKSimCardInfo.h | 21 ---- RAFSUSDKSystemUpdateInfo.h | 18 --- RAFSUSDKThresholdInfo.h | 28 ----- RAFSUSDKTimeInfo.h | 18 --- RAFSUSDKWarningIntervalInfo.h | 20 --- RAFSUSDKWirelessInfo.h | 23 ---- RAGeneralFSUSDK.h | 86 ------------- RASimpleFSUSDK.h | 99 --------------- .../Headers/RayonicsFSUSDKKit.h | 39 ++++++ 27 files changed, 39 insertions(+), 883 deletions(-) delete mode 100644 RAFSUSDKActiveReportInfo.h delete mode 100644 RAFSUSDKBase.h delete mode 100644 RAFSUSDKBaseDelegate.h delete mode 100644 RAFSUSDKDetectInfo.h delete mode 100644 RAFSUSDKDoActionInfo.h delete mode 100644 RAFSUSDKDoParameterInfo.h delete mode 100644 RAFSUSDKEthernetParameterInfo.h delete mode 100644 RAFSUSDKHeartBeatInfo.h delete mode 100644 RAFSUSDKLockInfo.h delete mode 100644 RAFSUSDKMotorActionInfo.h delete mode 100644 RAFSUSDKOnlineOpenInfo.h delete mode 100644 RAFSUSDKPPPAddressInfo.h delete mode 100644 RAFSUSDKPeripheral.h delete mode 100644 RAFSUSDKPublicCommon.h delete mode 100644 RAFSUSDKPublicDefine.h delete mode 100644 RAFSUSDKPublicTypeEnum.h delete mode 100644 RAFSUSDKResultInfo.h delete mode 100644 RAFSUSDKServiceInfo.h delete mode 100644 RAFSUSDKSimCardInfo.h delete mode 100644 RAFSUSDKSystemUpdateInfo.h delete mode 100644 RAFSUSDKThresholdInfo.h delete mode 100644 RAFSUSDKTimeInfo.h delete mode 100644 RAFSUSDKWarningIntervalInfo.h delete mode 100644 RAFSUSDKWirelessInfo.h delete mode 100644 RAGeneralFSUSDK.h delete mode 100644 RASimpleFSUSDK.h create mode 100644 RayonicsFSUSDK.framework/Headers/RayonicsFSUSDKKit.h diff --git a/RAFSUSDKActiveReportInfo.h b/RAFSUSDKActiveReportInfo.h deleted file mode 100644 index e9c1336..0000000 --- a/RAFSUSDKActiveReportInfo.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// RAFSUSDKActiveReportInfo.h -// BleFSUSDK -// -// Created by Piccolo on 2017/8/9. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKDetectInfo.h" - -@interface RAFSUSDKActiveReportInfo : NSObject -@property (assign, nonatomic) BOOL feedBackState; -@property (strong, nonatomic) RAFSUSDKDetectInfo *fsuDetectInfo; - -@end diff --git a/RAFSUSDKBase.h b/RAFSUSDKBase.h deleted file mode 100644 index 1ebfb0d..0000000 --- a/RAFSUSDKBase.h +++ /dev/null @@ -1,32 +0,0 @@ -// -// RAFSUSDKBase.h -// BleFSUSDK -// -// Created by Piccolo on 26/02/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import "RAFSUSDKPublicDefine.h" - -@protocol RAFSUSDKBaseDelegate - -- (void)scanedFSUPeripheral:(CBPeripheral *)peripheral peripheralName:(NSString *)peripheralName RSSI:(NSNumber *)RSSI; -- (void)currentFSURssi:(NSNumber *)rssi; - -@end - -@interface RAFSUSDKBase : NSObject - -@property (nonatomic,weak) id delegate; -@property (nonatomic, assign, readonly) BOOL showDebugLog; -@property (nonatomic, assign, readonly) NSRAFSUSDKTesterType testerType; - -+ (instancetype)sharedManager; -+ (void)initBlueToothManager; -+ (void)initBlueToothManagerWithManager:(CBCentralManager *)manager; -+ (void)setDelegate:(id)delegate; -+ (void)startScan; -+ (void)stopScan; -+ (void)showDebugLog:(BOOL)showDebugLog; - -@end diff --git a/RAFSUSDKBaseDelegate.h b/RAFSUSDKBaseDelegate.h deleted file mode 100644 index 04b7b1b..0000000 --- a/RAFSUSDKBaseDelegate.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// RAFSUSDKDefineDelegate.h -// BleFSUSDK -// -// Created by Piccolo on 26/02/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import -#import - -@protocol RAFSUSDKDefineDelegate - -@optional - -- (void)scanedFSUPeripheral:(CBPeripheral *)peripheral peripheralName:(NSString *)peripheralName RSSI:(NSNumber *)RSSI; -- (void)currentFSURssi:(NSNumber *)rssi; - -@end diff --git a/RAFSUSDKDetectInfo.h b/RAFSUSDKDetectInfo.h deleted file mode 100644 index ca6af70..0000000 --- a/RAFSUSDKDetectInfo.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// RAFSUSDKDetectInfo.h -// BleFSUSDK -// -// Created by Piccolo on 2017/8/10. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -#import -#import "RAFSUSDKPublicTypeEnum.h" -#import "RAFSUSDKLockInfo.h" - -@interface RAFSUSDKDetectInfo : NSObject - -@property (nonatomic, strong) NSString *fsuTime; -@property (nonatomic, assign) CGFloat fsuTemp; -@property (nonatomic, assign) NSInteger fsuBattery; -@property (nonatomic, strong) NSArray *locksArray; -@property (nonatomic, assign) BOOL fsuShaking; -@property (nonatomic, assign) BOOL fsuFlooded; -@property (nonatomic, assign) NSInteger horizontalSensing; -@property (nonatomic, assign) NSInteger historyEventCount; - -@end diff --git a/RAFSUSDKDoActionInfo.h b/RAFSUSDKDoActionInfo.h deleted file mode 100644 index 4ccf3af..0000000 --- a/RAFSUSDKDoActionInfo.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// RAFSUSDKDoActionInfo.h -// BleFSUSDK -// -// Created by Piccolo on 02/03/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKDoActionInfo : NSObject - -@property (nonatomic, assign) NSInteger serial; -@property (nonatomic, assign) NSRAFSUSDKDoActionType type; - -- (instancetype)initWithSerial:(NSInteger)serial type:(NSRAFSUSDKDoActionType)type; - -@end diff --git a/RAFSUSDKDoParameterInfo.h b/RAFSUSDKDoParameterInfo.h deleted file mode 100644 index 1e65a03..0000000 --- a/RAFSUSDKDoParameterInfo.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// RAFSUSDKDoParameterInfo.h -// BleFSUSDK -// -// Created by Piccolo on 02/03/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKDoParameterInfo : NSObject - -@property (nonatomic, assign) NSInteger serial; -@property (nonatomic, assign) NSRAFSUSDKDoParameterType type; -@property (nonatomic, assign) NSInteger timeInterval; - -- (instancetype)initWithSerial:(NSInteger)serial type:(NSRAFSUSDKDoParameterType)type timeInterval:(NSInteger)timeInterval; - -@end diff --git a/RAFSUSDKEthernetParameterInfo.h b/RAFSUSDKEthernetParameterInfo.h deleted file mode 100644 index 1114ed7..0000000 --- a/RAFSUSDKEthernetParameterInfo.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// RAFSUSDKEthernetParameterInfo.h -// BleFSUSDK -// -// Created by Piccolo on 28/02/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import - -@interface RAFSUSDKEthernetParameterInfo : NSObject - -/*-- ip地址 --*/ -@property (nonatomic, strong) NSString *ipAddress; -/*-- ip掩码 --*/ -@property (nonatomic, strong) NSString *ipMask; -/*-- 网关 --*/ -@property (nonatomic, strong) NSString *gateway; -/*-- 网段 --*/ -@property (nonatomic, strong) NSString *netWorkSegment; -/*-- 广播网段 --*/ -@property (nonatomic, strong) NSString *broadcastNetWorkSegment; -/*-- Mac 地址 --*/ -@property (nonatomic, strong) NSString *macAddress; - -@end diff --git a/RAFSUSDKHeartBeatInfo.h b/RAFSUSDKHeartBeatInfo.h deleted file mode 100644 index 4fe3f60..0000000 --- a/RAFSUSDKHeartBeatInfo.h +++ /dev/null @@ -1,73 +0,0 @@ -// -// RAFSUSDKHeartBeatInfo.h -// BleFSUSDK -// -// Created by Piccolo on 28/02/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import -#import -#import "RAFSUSDKPublicTypeEnum.h" -#import "RAFSUSDKLockInfo.h" - -@interface RAFSUSDKHeartBeatInfo : NSObject - -@property (nonatomic, assign) NSInteger deviceStatus; -@property (nonatomic, strong) NSDate *time; -@property (nonatomic, strong) NSString *systemCode; -@property (nonatomic, assign) CGFloat temperature; -@property (nonatomic, assign) NSRAFSUSDKPowerSupplyType powerSupplyType; -@property (nonatomic, assign) NSInteger battery; -@property (nonatomic, assign) NSRAFSUSDKTriphaseInfoType triphaseInfoType; -@property (nonatomic, assign) BOOL shake; -@property (nonatomic, assign) NSRAFSUSDKLockStatusType contactStatusI; -@property (nonatomic, assign) NSRAFSUSDKLockStatusType contactStatusII; - - -/* -< -00 设备状态 (1) 0 -5a 96 6b 8e 时间 (4) 1-->4 -36 36 36 36 系统码 (4) 5-->8 -00 00 db 41 AI_1 -ff ff ff ff AI_2 -ff ff ff ff AI_3 -ff ff ff ff AI_4 -ff ff ff ff AI_5 -ff ff ff ff AI_6 -ff ff ff ff AI_7 -ff ff ff ff AI_8 -ff ff ff ff AI_9 (36) 9-->44 - -00 00 00 00 -00 00 00 00 -00 00 00 00 -00 00 00 00 -00 00 00 00 - -00 00 00 00 -00 00 00 00 -00 00 00 00 -00 00 00 00 -00 00 00 00 - -00 00 00 00 -00 00 00 00 电表信息 (48) 45-->92 - -01 供电模式 93 -64 电池电量 94 -04 三相缺相信息 95 -01 震动 96 -01 门磁1 97 -01 门磁2 98 -ff ff -ff ff ff ff -ff ff ff ff DI (16) 93-->108 - -ff ff ff ff -ff ff ff ff> -*/ - - -@end diff --git a/RAFSUSDKLockInfo.h b/RAFSUSDKLockInfo.h deleted file mode 100644 index c2c19f9..0000000 --- a/RAFSUSDKLockInfo.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// RAFSUSDKLockInfo.h -// BleFSUSDK -// -// Created by Piccolo on 29/01/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKLockInfo : NSObject - -@property (nonatomic, assign) NSRAFSUSDKLockStatusType contactStatus; -@property (nonatomic, assign) NSRAFSUSDKLockStatusType cylinderStatus; -@property (nonatomic, assign) NSInteger serialNumber;//1, 2, 3... - -- (instancetype)initWithSerialNumber:(NSInteger)serialNumber contactStatus:(NSRAFSUSDKLockStatusType)contactStatus cylinderStatus:(NSRAFSUSDKLockStatusType)cylinderStatus; - -@end diff --git a/RAFSUSDKMotorActionInfo.h b/RAFSUSDKMotorActionInfo.h deleted file mode 100644 index f9f3eba..0000000 --- a/RAFSUSDKMotorActionInfo.h +++ /dev/null @@ -1,28 +0,0 @@ -// -// RAFSUSDKMotorActionInfo.h -// BleFSUSDK -// -// Created by Piccolo on 01/03/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKMotorActionInfo : NSObject - -@property (nonatomic, assign) NSInteger serial; -@property (nonatomic, assign) NSRAFSUSDKMotorActionType actionType; -@property (nonatomic, assign) BOOL resetMotorOperationalParameter; -@property (nonatomic, assign) NSInteger delayTimeInterval;//单位:秒 -@property (nonatomic, assign) NSInteger motorRotationTimeInterval;//单位:10毫秒 -@property (nonatomic, assign) NSInteger openingTimeInterval;//单位:秒 - -- (instancetype)initWithSerial:(NSInteger)serial - actionType:(NSRAFSUSDKMotorActionType)actionType -resetMotorOperationalParameter:(BOOL)resetMotorOperationalParameter - delayTimeInterval:(NSInteger)delayTimeInterval - motorRotationTimeInterval:(NSInteger)motorRotationTimeInterval - openingTimeInterval:(NSInteger)openingTimeInterval; - -@end diff --git a/RAFSUSDKOnlineOpenInfo.h b/RAFSUSDKOnlineOpenInfo.h deleted file mode 100644 index 9f26fcd..0000000 --- a/RAFSUSDKOnlineOpenInfo.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// RAFSUSDKOnlineOpenInfo.h -// BleFSUSDK -// -// Created by Piccolo on 2017/8/10. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKOnlineOpenInfo : NSObject - - -@property (nonatomic, strong) NSDate *beginTime; -@property (nonatomic, strong) NSDate *endTime; -@property (nonatomic, assign) NSInteger lockID; -@property (nonatomic, assign) NSInteger userID; - -- (instancetype)initWithUserID:(NSInteger)userID lockID:(NSInteger)lockID beginTime:(NSDate *)beginTime endTime:(NSDate *)endTime; - -@end diff --git a/RAFSUSDKPPPAddressInfo.h b/RAFSUSDKPPPAddressInfo.h deleted file mode 100644 index 50df398..0000000 --- a/RAFSUSDKPPPAddressInfo.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// RAFSUSDKPPPAddressInfo.h -// BleFSUSDK -// -// Created by Piccolo on 2017/8/14. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKPPPAddressInfo : NSObject - -@property (nonatomic, strong) NSString *ipAddress; -@property (nonatomic, strong) NSString *ipMask; -@property (nonatomic, strong) NSString *gateway; -@property (nonatomic, strong) NSString *netWorkSegment; -@property (nonatomic, strong) NSString *broadcastNetworkSegment; -@property (nonatomic, strong) NSString *macAddress; -@property (nonatomic, assign) NSRAFSUSDKPPPStatusType status; - -@end diff --git a/RAFSUSDKPeripheral.h b/RAFSUSDKPeripheral.h deleted file mode 100644 index 880d195..0000000 --- a/RAFSUSDKPeripheral.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// RAFSUSDKPeripheral.h -// BleFSUSDK -// -// Created by Piccolo on 08/02/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import - -@interface RAFSUSDKPeripheral : NSObject - -@property (nonatomic, strong) CBPeripheral *peripheral; -@property (nonatomic, strong) NSNumber *RSSI; -@property (nonatomic, strong) NSString *peripheralName; -- (instancetype)initWithPeripheral:(CBPeripheral *)peripheral peripheralName:(NSString *)peripheralName RSSI:(NSNumber *)RSSI; -@end diff --git a/RAFSUSDKPublicCommon.h b/RAFSUSDKPublicCommon.h deleted file mode 100644 index dcae927..0000000 --- a/RAFSUSDKPublicCommon.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// RAFSUSDKPublicCommon.h -// BlueToothSDK -// -// Created by Piccolo on 2017/6/23. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKPublicCommon : NSObject - -+ (NSString *)convertDateToString:(NSDate *)date withFormatter:(NSString *)formatterStr; -+ (NSDate *)convertStringToDate:(NSString *)dateStr withFormatter:(NSString *)formatterStr; - -+ (NSString *)deviceVersion; -+ (NSString *)identityVersion; - -+ (NSRAFSUSDKBleType)fsuTypeFromPeripheralName:(NSString *)name; - -@end diff --git a/RAFSUSDKPublicDefine.h b/RAFSUSDKPublicDefine.h deleted file mode 100644 index 49e1cb0..0000000 --- a/RAFSUSDKPublicDefine.h +++ /dev/null @@ -1,52 +0,0 @@ -// -// RAFSUSDKPublicDefine.h -// BleFSUSDK -// -// Created by Piccolo on 24/02/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#ifndef RAFSUSDKPublicDefine_h -#define RAFSUSDKPublicDefine_h - -#import -#import -#import "RAFSUSDKBaseDelegate.h" -#import "RAFSUSDKResultInfo.h" - -#import "RAFSUSDKServiceInfo.h" -#import "RAFSUSDKWirelessInfo.h" -#import "RAFSUSDKPPPAddressInfo.h" -#import "RAFSUSDKEthernetParameterInfo.h" -#import "RAFSUSDKMotorActionInfo.h" -#import "RAFSUSDKDoParameterInfo.h" -#import "RAFSUSDKDoActionInfo.h" -#import "RAFSUSDKSystemUpdateInfo.h" - -#define DEFINE_SYSCODE @[@0x36, @0x36, @0x36, @0x36] -//test@2018-02-08 16:25:46 -//#define DEFINE_SYSCODE @[@0xff, @0xff, @0xff, @0xff] -#define DEFINE_REGCODE @[@0x31, @0x31, @0x31, @0x31] -static NSString * const kSimpleFSUGJTopName = @"RAYONICS_GJ"; -static NSString * const kSimpleFSUKPITopName = @"KPI"; -static NSString * const kGeneralFSUTopName = @"RAYONICS_DH"; - -/*透传字符串*/ -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoAT = @"AT"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCMEE = @"AT+CMEE=1"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCGMI = @"AT+CGMI"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCGMM = @"AT+CGMM"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCGMR = @"AT+CGMR"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATNBAND = @"AT+NBAND?"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATNCONFIG = @"AT+NCONFIG?"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCGSN = @"AT+CGSN=1"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCIMI = @"AT+CIMI"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCGATTI = @"AT+CGATT=1"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCGATTII = @"AT+CGATT?"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCSQ = @"AT+CSQ"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCOPS = @"AT+COPS?"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATCEREG = @"AT+CEREG?"; -static NSString * const kSimpleFSUUnvarnishedTransmissionInfoATNUESTATS = @"AT+NUESTATS"; - - -#endif /* RAFSUSDKPublicDefine_h */ diff --git a/RAFSUSDKPublicTypeEnum.h b/RAFSUSDKPublicTypeEnum.h deleted file mode 100644 index 026be0e..0000000 --- a/RAFSUSDKPublicTypeEnum.h +++ /dev/null @@ -1,114 +0,0 @@ -// -// RAFSUSDKPublicTypeEnum.h -// BleFSUSDK -// -// Created by Piccolo on 2017/8/14. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#ifndef FSUPublicTypeEnum_h -#define FSUPublicTypeEnum_h - - -#endif /* FSUPublicTypeEnum_h */ - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKBleType){ - NSRAFSUSDKBleTypeUnknow = 0x00, - NSRAFSUSDKBleTypeSimple = 0x01, - NSRAFSUSDKBleTypeGeneral = 0x02, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKTransportType){ - - NSRAFSUSDKTransportTypeUdpMode = 0x01, - NSRAFSUSDKTransportTypeTcpServer = 0x02, - NSRAFSUSDKTransportTypeTcpClient = 0x03, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKWirelessType){ - - NSRAFSUSDKWirelessTypeOff = 0x00, - NSRAFSUSDKWirelessTypeOn = 0x01, -}; - -typedef NS_ENUM(int, NSRAFSUSDKReadWriteType){ - - NSRAFSUSDKReadWriteTypeRead = 0x03, - NSRAFSUSDKReadWriteTypeWrite = 0x10, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKPPPStatusType){ - - NSRAFSUSDKPPPStatusTypeNoNeedDial = 0x00, - NSRAFSUSDKPPPStatusTypePowerOn = 0x01, - NSRAFSUSDKPPPStatusTypeReset = 0x02, - NSRAFSUSDKPPPStatusTypeRateProof = 0x03, - NSRAFSUSDKPPPStatusTypeDial = 0x04, - NSRAFSUSDKPPPStatusTypeDialSuccessed = 0x05, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKPowerSupplyType){ - - NSRAFSUSDKPowerSupplyType220VPower = 0x01, - NSRAFSUSDKPowerSupplyType12VPower = 0x02, - NSRAFSUSDKPowerSupplyTypeOutterPower = 0x03, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKTriphaseInfoType){ - - NSRAFSUSDKTriphaseInfoTypeNormal = 0x00, - NSRAFSUSDKTriphaseInfoTypePhaseAbnormalA = 0x01, - NSRAFSUSDKTriphaseInfoTypePhaseAbnormalB = 0x02, - NSRAFSUSDKTriphaseInfoTypePhaseAbnormalC = 0x03, - NSRAFSUSDKTriphaseInfoTypePhaseAbnormalAB = 0x04, - NSRAFSUSDKTriphaseInfoTypePhaseAbnormalAC = 0x05, - NSRAFSUSDKTriphaseInfoTypePhaseAbnormalBC = 0x06, - NSRAFSUSDKTriphaseInfoTypePhaseAbnormalABC = 0x07, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKMotorActionType){ - - NSRAFSUSDKMotorActionTypeLock = 0x00, - NSRAFSUSDKMotorActionTypeUnlock = 0x01, - NSRAFSUSDKMotorActionTypeNone = 0x02, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKDoParameterType){ - - NSRAFSUSDKDoParameterTypeConstantOpen = 0x01, - NSRAFSUSDKDoParameterTypeConstantClose = 0x02, - NSRAFSUSDKDoParameterTypePulse = 0x03, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKDoActionType){ - - NSRAFSUSDKDoActionTypeAttracted = 0x01,//开门 - NSRAFSUSDKDoActionTypeRepellent = 0x02, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKRestartType){ - - NSRAFSUSDKRestartTypeSystem = 0x01, - NSRAFSUSDKRestartTypeWatchDog = 0x02, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKResetType){ - - NSRAFSUSDKResetTypeExceptNetworkParameter = 0x00, - NSRAFSUSDKResetTypeAllParameter = 0x01, - NSRAFSUSDKResetTypeCardInfo = 0x02, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKLockStatusType){ - - NSRAFSUSDKLockStatusTypeNull = 0xff, - NSRAFSUSDKLockStatusTypeLocked = 0x00, - NSRAFSUSDKLockStatusTypeUnlocked = 0x01, -}; - -typedef NS_ENUM(NSUInteger, NSRAFSUSDKTesterType){ - - NSRAFSUSDKTesterTypePrivate = 0x01,//SDK Test private (自己调试用) - NSRAFSUSDKTesterTypePublic = 0x02,//SDK Test public (客户调试用) - NSRAFSUSDKTesterTypeNone = 0x03,//SDK Release (SDK集成项目用) -}; diff --git a/RAFSUSDKResultInfo.h b/RAFSUSDKResultInfo.h deleted file mode 100644 index 43e135e..0000000 --- a/RAFSUSDKResultInfo.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// RAFSUSDKResultInfo.h -// BlueToothSDK -// -// Created by Piccolo on 2017/4/26. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -//#import "MessageNewEnum.h" - -@interface RAFSUSDKResultInfo : NSObject - -@property(assign, nonatomic) BOOL feedBackState; -@property(strong, nonatomic) NSMutableDictionary *feedBackDic; -@property(strong, nonatomic) NSMutableDictionary *detailDic; - - - - - - -@end diff --git a/RAFSUSDKServiceInfo.h b/RAFSUSDKServiceInfo.h deleted file mode 100644 index 3aa74ff..0000000 --- a/RAFSUSDKServiceInfo.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// RAFSUSDKServiceInfo.h -// BleFSUSDK -// -// Created by Piccolo on 2017/8/14. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKServiceInfo : NSObject - -@property (nonatomic, assign) NSRAFSUSDKTransportType transMode; -@property (nonatomic, copy) NSString *ipAddress; -@property (nonatomic, assign) NSUInteger port; - -//- (id)copyWithZone:(NSZone *)zone; - -@end diff --git a/RAFSUSDKSimCardInfo.h b/RAFSUSDKSimCardInfo.h deleted file mode 100644 index 7132c22..0000000 --- a/RAFSUSDKSimCardInfo.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// RAFSUSDKSimCardInfo.h -// BleFSUSDK -// -// Created by Piccolo on 22/01/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import - -@interface RAFSUSDKSimCardInfo : NSObject - -@property (nonatomic, strong) NSString *IMEI; -@property (nonatomic, strong) NSString *IMSI; -@property (nonatomic, strong) NSString *SINR; -@property (nonatomic, strong) NSString *RSRQ; -@property (nonatomic, strong) NSString *signalPower; -@property (nonatomic, strong) NSString *baseStationIP; -@property (nonatomic, strong) NSString *baseStationID; - -@end diff --git a/RAFSUSDKSystemUpdateInfo.h b/RAFSUSDKSystemUpdateInfo.h deleted file mode 100644 index 30c9239..0000000 --- a/RAFSUSDKSystemUpdateInfo.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// RAFSUSDKSystemUpdateInfo.h -// BleFSUSDK -// -// Created by Piccolo on 02/03/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import - -@interface RAFSUSDKSystemUpdateInfo : NSObject - -@property (nonatomic, strong) NSString *ipAddress; -@property (nonatomic, strong) NSString *fileName; - -- (instancetype)initWithIpAddress:(NSString *)ipAddress fileName:(NSString *)fileName; - -@end diff --git a/RAFSUSDKThresholdInfo.h b/RAFSUSDKThresholdInfo.h deleted file mode 100644 index af5121c..0000000 --- a/RAFSUSDKThresholdInfo.h +++ /dev/null @@ -1,28 +0,0 @@ -// -// RAFSUSDKThresholdInfo.h -// BleFSUSDK -// -// Created by Piccolo on 24/01/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import - -@interface RAFSUSDKThresholdInfo : NSObject - - -@property (nonatomic, assign) NSInteger minTemperature; -@property (nonatomic, assign) NSInteger maxTemperature; -@property (nonatomic, assign) NSInteger battery; -@property (nonatomic, assign) NSInteger lockDelayMinute; -@property (nonatomic, assign) NSInteger reportCycleHour; - -@property (nonatomic, assign) BOOL skewDetection; -@property (nonatomic, assign) BOOL floodDetection; -@property (nonatomic, assign) BOOL shakeDetection; -@property (nonatomic, assign) BOOL cameraDetection; -@property (nonatomic, assign) BOOL forcedUnlockDetection; -@property (nonatomic, assign) BOOL arming; - - -@end diff --git a/RAFSUSDKTimeInfo.h b/RAFSUSDKTimeInfo.h deleted file mode 100644 index 2338353..0000000 --- a/RAFSUSDKTimeInfo.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// RAFSUSDKTimeInfo.h -// BleFSUSDK -// -// Created by Piccolo on 01/03/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import - -@interface RAFSUSDKTimeInfo : NSObject - -@property (nonatomic, strong) NSDate *deviceTime; -@property (nonatomic, strong) NSDate *sentTime; - -- (instancetype)initWithDeviceTimeInterval:(NSInteger)deviceTimeInterval sentTimeInterval:(NSInteger)sentTimeInterval; - -@end diff --git a/RAFSUSDKWarningIntervalInfo.h b/RAFSUSDKWarningIntervalInfo.h deleted file mode 100644 index 6a40af0..0000000 --- a/RAFSUSDKWarningIntervalInfo.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// RAFSUSDKWarningIntervalInfo.h -// -// -// Created by Piccolo on 15/03/2018. -// - -#import - -@interface RAFSUSDKWarningIntervalInfo : NSObject - -@property (nonatomic, assign) NSInteger temperatureInterval; -@property (nonatomic, assign) NSInteger batteryInterval; -@property (nonatomic, assign) NSInteger horizontalInterval; -@property (nonatomic, assign) NSInteger floodInterval; -@property (nonatomic, assign) NSInteger shakeInterval; -@property (nonatomic, assign) NSInteger illegalUnlockInterval; -@property (nonatomic, assign) NSInteger unlockTimeoutInterval; - -@end diff --git a/RAFSUSDKWirelessInfo.h b/RAFSUSDKWirelessInfo.h deleted file mode 100644 index 24720d0..0000000 --- a/RAFSUSDKWirelessInfo.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// RAFSUSDKWirelessInfo.h -// BleFSUSDK -// -// Created by Piccolo on 2017/8/14. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import -#import "RAFSUSDKPublicTypeEnum.h" - -@interface RAFSUSDKWirelessInfo : NSObject - -@property (nonatomic, assign) NSRAFSUSDKWirelessType wirelessMode; -@property (nonatomic, strong) NSString *account; -@property (nonatomic, strong) NSString *password; -@property (nonatomic, strong) NSString *apnInner; -@property (nonatomic, strong) NSString *phoneNum; -@property (nonatomic, assign) NSInteger signalIntensity; - - - -@end diff --git a/RAGeneralFSUSDK.h b/RAGeneralFSUSDK.h deleted file mode 100644 index 0bfa25b..0000000 --- a/RAGeneralFSUSDK.h +++ /dev/null @@ -1,86 +0,0 @@ -// -// RAGeneralFSUSDK.h -// BleFSUSDK -// -// Created by Piccolo on 26/02/2018. -// Copyright © 2018 Piccolo. All rights reserved. -// - -#import "RAFSUSDKPublicDefine.h" - -@protocol RAGeneralFSUSDKDelegate - -@optional -- (void)generalFsuRequestInitSdkResultInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestDestroyResultInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestConnectResultInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestDisconnectResultInfo:(RAFSUSDKResultInfo *)info; - -- (void)generalFsuRequestReadFSUDeviceID:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetFSUServiceInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetFSUServiceInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetFSUWirelessInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetFSUWirelessInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetPPPAddressInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetfsuEthernetParameterInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetfsuEthernetParameterInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetfsuHeartBeatInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetTimeInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetTimeInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetMotorActionInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetMotorActionInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetDoParameterInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestGetDoParameterInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetDoActionInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetSystemUpdateInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetRestartInfo:(RAFSUSDKResultInfo *)info; -- (void)generalFsuRequestSetResetInfo:(RAFSUSDKResultInfo *)info; - -/*内测使用*/ -- (void)generalFsuRequestStr:(NSString *)debugStr; - -@end - -@interface RAGeneralFSUSDK : NSObject - -@property (nonatomic,weak) id delegate; - -/** - *获取单例对象的方法 - */ - -+ (instancetype)sharedManager; -+ (void)setDelegate:(id)delegate; - - -+ (void)initSDK; -+ (CBPeripheralState)currentBleState; -+ (void)connectBlueTooth:(CBPeripheral *)per withSyscode:(NSArray *)syscode withRegcode:(NSArray *)regcode; -+ (void)disConnectBle; -+ (void)initBlueToothManager; -+ (void)initBlueToothManagerWithManager:(CBCentralManager *)manager; - -+ (void)readFSUDeviceID; -+ (void)setFSUServiceInfo:(RAFSUSDKServiceInfo *)serviceInfo; -+ (void)getFSUServiceInfo; -+ (void)setFSUWirelessInfo:(RAFSUSDKWirelessInfo *)wirelessInfo; -+ (void)getFSUWirelessInfo; -+ (void)getFSUPPPAddressInfo; -+ (void)setFSUEthernetParameterInfo:(RAFSUSDKEthernetParameterInfo *)ethernetParameterInfo; -+ (void)getFSUEthernetParameterInfo; -+ (void)getFSUHeartbeatPackageInfo; -+ (void)setFSUTime:(NSDate *)date; -+ (void)getFSUTime; -+ (void)setFSUMotorActionInfo:(NSArray*)motorArray; -+ (void)getFSUMotorActionInfo; -+ (void)setFSUDoParameterInfo:(NSArray*)doParameterInfoArray; -+ (void)getFSUDoParameterInfo; -+ (void)setFSUDoActionInfo:(NSArray*)doActionInfoArray; -+ (void)setFSUSystemUpdateInfo:(RAFSUSDKSystemUpdateInfo *)systemUpdateInfo; -+ (void)setFSURestartFromType:(NSRAFSUSDKRestartType)restartType; -+ (void)setFSUResetFromType:(NSRAFSUSDKResetType)resetType; - -/*内测使用(release版本无效)*/ -+ (void)reportStr:(NSString *)str; - -@end diff --git a/RASimpleFSUSDK.h b/RASimpleFSUSDK.h deleted file mode 100644 index 68eed0d..0000000 --- a/RASimpleFSUSDK.h +++ /dev/null @@ -1,99 +0,0 @@ -// -// RASimpleFSUSDK.h -// test1 -// -// Created by Piccolo on 2017/4/19. -// Copyright © 2017年 Piccolo. All rights reserved. -// - -#import "RAFSUSDKPublicDefine.h" - -#import "RAFSUSDKOnlineOpenInfo.h" -#import "RAFSUSDKActiveReportInfo.h" -#import "RAFSUSDKThresholdInfo.h" -#import "RAFSUSDKWarningIntervalInfo.h" - - -@protocol RASimpleFSUSDKDelegate - -@optional - -- (void)simpleFsuRequestInitSdkResultInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestDestroyResultInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestConnectResultInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestDisconnectResultInfo:(RAFSUSDKResultInfo *)info; - -- (void)simpleFsuRequestSetOnlineOpenResultInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestSetFsuTimeResultInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestActiveReport:(RAFSUSDKActiveReportInfo *)fsuActiveReportInfo; -- (void)simpleFsuRequestReadFSUEvent:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestCleanFSUEvent:(RAFSUSDKResultInfo *)info; - -- (void)simpleFsuRequestSetFSUDeviceID:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestReadFSUDeviceID:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestGetFSUServiceInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestSetFSUServiceInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestGetFSUWirelessInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestSetFSUWirelessInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestGetPPPAddressInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestReadSimCardInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestReadThresholdInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestSetThresholdInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestSetArmingInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestReadFSUMacAndVerson:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestSetFSUWarningIntervalInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestReadFSUWarningIntervalInfo:(RAFSUSDKResultInfo *)info; -- (void)simpleFsuRequestReadFSUUnvarnishedTransmissionInfo:(RAFSUSDKResultInfo *)info; - -/*内测使用*/ -- (void)simpleFsuRequestStr:(NSString *)debugStr; - -@end - - -@interface RASimpleFSUSDK : NSObject - -@property (nonatomic,weak) id delegate; - -/** - *获取单例对象的方法 - */ - -+ (instancetype)sharedManager; -+ (void)setDelegate:(id)delegate; - -+ (void)initSDK; -+ (CBPeripheralState)currentBleState; -+ (void)connectBlueTooth:(CBPeripheral *)per withSyscode:(NSArray *)syscode withRegcode:(NSArray *)regcode; -+ (void)disConnectBle; -+ (void)initBlueToothManager; -+ (void)initBlueToothManagerWithManager:(CBCentralManager *)manager; - -+ (void)setFSUTime; -+ (void)setOnlineOpen:(RAFSUSDKOnlineOpenInfo *)onlineOpenInfo; -+ (void)readFSUEvent; -+ (void)cleanFSUEvent; -+ (void)setFSUDeviceID:(NSString *)deviceID; -+ (void)readFSUDeviceID; -+ (void)readFSUSimCardInfo; -+ (void)readFSUThresholdInfo; -+ (void)setFSUThresholdInfo:(RAFSUSDKThresholdInfo *)thresholdInfo; -+ (void)setFSUArming:(BOOL)arming; -+ (void)readFSUMacAndVersionInfo; - -+ (void)setFSUWarningIntervalInfo:(RAFSUSDKWarningIntervalInfo *)warningIntervalInfo; -+ (void)getFSUWarningIntervalInfo; - -+ (void)setFSUServiceInfo:(RAFSUSDKServiceInfo *)serviceInfo; -+ (void)getFSUServiceInfo; -+ (void)setFSUWirelessInfo:(RAFSUSDKWirelessInfo *)wirelessInfo; -+ (void)getFSUWirelessInfo; -+ (void)getFSUPPPAddressInfo; - -+ (void)sendFSUUnvarnishedTransmissionInfo:(NSString *)infoString; - -/*内测使用(release版本无效)*/ -+ (void)reportStr:(NSString *)str; - - -@end diff --git a/RayonicsFSUSDK.framework/Headers/RayonicsFSUSDKKit.h b/RayonicsFSUSDK.framework/Headers/RayonicsFSUSDKKit.h new file mode 100644 index 0000000..7564f4d --- /dev/null +++ b/RayonicsFSUSDK.framework/Headers/RayonicsFSUSDKKit.h @@ -0,0 +1,39 @@ +// +// RayonicsFSUSDKKit.h +// RayonicsFSUSDK +// +// Created by Piccolo on 2018/5/2. +// Copyright © 2018 Piccolo. All rights reserved. +// + +#ifndef RayonicsFSUSDKKit_h +#define RayonicsFSUSDKKit_h + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#endif /* RayonicsFSUSDKKit_h */