Browse Source

修改

master
ray 3 months ago
parent
commit
400deeb904
  1. 8
      ECellBluetooth.xcodeproj/project.pbxproj
  2. BIN
      ECellBluetooth.xcodeproj/project.xcworkspace/xcuserdata/ecell.xcuserdatad/UserInterfaceState.xcuserstate
  3. 16
      ECellBluetooth.xcodeproj/xcuserdata/ecell.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  4. 1
      ECellBluetooth/ECellBLEEnum.h
  5. 9
      ECellBluetooth/ECellBluetoothDelegate.h
  6. 3
      ECellBluetooth/ECellBluetoothManager.h
  7. 23
      ECellBluetooth/ECellBluetoothManager.m
  8. BIN
      Products/ECellBluetooth.framework.zip
  9. BIN
      Products/ECellBluetooth.framework/ECellBluetooth
  10. 1
      Products/ECellBluetooth.framework/Headers/ECellBLEEnum.h
  11. 9
      Products/ECellBluetooth.framework/Headers/ECellBluetoothDelegate.h
  12. BIN
      Products/ECellBluetooth.framework/Info.plist
  13. 2
      Products/ECellBluetooth.framework/Modules/module.modulemap
  14. BIN
      Products/ECellBluetooth.framework/_CodeSignature/CodeDirectory
  15. BIN
      Products/ECellBluetooth.framework/_CodeSignature/CodeRequirements-1
  16. 20
      Products/ECellBluetooth.framework/_CodeSignature/CodeResources
  17. BIN
      Products/ECellBluetooth.framework/_CodeSignature/CodeSignature

8
ECellBluetooth.xcodeproj/project.pbxproj

@ -390,7 +390,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.2; IPHONEOS_DEPLOYMENT_TARGET = 17.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
@ -445,7 +445,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.2; IPHONEOS_DEPLOYMENT_TARGET = 17.4;
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
@ -468,7 +468,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath"; DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = ECellBluetooth/Info.plist; INFOPLIST_FILE = ECellBluetooth/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
@ -500,7 +500,7 @@
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
INFOPLIST_FILE = ECellBluetooth/Info.plist; INFOPLIST_FILE = ECellBluetooth/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",

BIN
ECellBluetooth.xcodeproj/project.xcworkspace/xcuserdata/ecell.xcuserdatad/UserInterfaceState.xcuserstate generated

Binary file not shown.

16
ECellBluetooth.xcodeproj/xcuserdata/ecell.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@ -7,22 +7,6 @@
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "D89A85EC-75D9-4DC0-83EF-125CA01AB55C"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "ECellBluetooth/ECellBLEDataParse.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "58"
endingLineNumber = "58"
landmarkName = "+parse:cmd:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "75C03F9E-0BD8-4964-ADAF-18AECBA3D905" uuid = "75C03F9E-0BD8-4964-ADAF-18AECBA3D905"
shouldBeEnabled = "Yes" shouldBeEnabled = "Yes"
ignoreCount = "0" ignoreCount = "0"

1
ECellBluetooth/ECellBLEEnum.h

@ -87,6 +87,7 @@ typedef NS_ENUM(NSInteger, ECell_BLE_REPORT_COMMAND) {
ECell_BLE_REPORT_COMMAND_realBloodOxyge, ECell_BLE_REPORT_COMMAND_realBloodOxyge,
ECell_BLE_REPORT_COMMAND_cameraControl, ECell_BLE_REPORT_COMMAND_cameraControl,
ECell_BLE_REPORT_COMMAND_findPhone, ECell_BLE_REPORT_COMMAND_findPhone,
ECell_BLE_REPORT_COMMAND_realSport,
}; };
#endif /* Enum_h */ #endif /* Enum_h */

9
ECellBluetooth/ECellBluetoothDelegate.h

@ -113,6 +113,15 @@ didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic
error:(nullable NSError *)error; error:(nullable NSError *)error;
/**
* @method
*
* @param reportCmd
* @param json
*/
- (void)getDeviceReportData:(ECell_BLE_REPORT_COMMAND)reportCmd
json:(NSDictionary *)json;
@end @end

3
ECellBluetooth/ECellBluetoothManager.h

@ -38,6 +38,9 @@ NS_ASSUME_NONNULL_BEGIN
/** 请求结果回调 */ /** 请求结果回调 */
@property (nonatomic, copy ) ResultBlock result; @property (nonatomic, copy ) ResultBlock result;
/** 监听设备上报数据 */
@property (nonatomic, copy ) ResultReportBlock resultReportBlock;
/** /**
| Is Bluetooth enabled? | Is Bluetooth enabled?

23
ECellBluetooth/ECellBluetoothManager.m

@ -38,8 +38,7 @@
@property (nonatomic, strong) NSMutableData *currenData; @property (nonatomic, strong) NSMutableData *currenData;
/** 总数据包 */ /** 总数据包 */
@property (nonatomic, strong) NSMutableData *totalData; @property (nonatomic, strong) NSMutableData *totalData;
/** 监听设备上报数据 */
@property (nonatomic, copy ) ResultReportBlock resultReportBlock;
/** 重连外设 */ /** 重连外设 */
@property (nonatomic,strong) CBPeripheral *reconnectPeripheral; @property (nonatomic,strong) CBPeripheral *reconnectPeripheral;
// 外部只读属性内部重新声明 // 外部只读属性内部重新声明
@ -427,15 +426,27 @@
reportCmd = ECell_BLE_REPORT_COMMAND_findPhone; reportCmd = ECell_BLE_REPORT_COMMAND_findPhone;
break; break;
case ECell_BLECMD_KEY_realTimesync:
case ECell_BLECMD_KEY_syncHealth:
reportCmd = ECell_BLE_REPORT_COMMAND_realSport;
break;
default: default:
// 回复设备发出通知 // // 回复设备发出通知
[self checkCRCHandleWithData:receiveData confirm:YES]; // [self checkCRCHandleWithData:receiveData confirm:YES];
return; // return;
break;
} }
if (IsDelegate(self.delegate, getDeviceReportData:json:)) {
[self.delegate getDeviceReportData:reportCmd json:dict];
}
if (self.resultReportBlock) { if (self.resultReportBlock) {
self.resultReportBlock(reportCmd, dict); self.resultReportBlock(reportCmd, dict);
} }
// 回复设备发出通知
[self checkCRCHandleWithData:receiveData confirm:YES];
return;
} }
} }

BIN
Products/ECellBluetooth.framework.zip

Binary file not shown.

BIN
Products/ECellBluetooth.framework/ECellBluetooth

Binary file not shown.

1
Products/ECellBluetooth.framework/Headers/ECellBLEEnum.h

@ -87,6 +87,7 @@ typedef NS_ENUM(NSInteger, ECell_BLE_REPORT_COMMAND) {
ECell_BLE_REPORT_COMMAND_realBloodOxyge, ECell_BLE_REPORT_COMMAND_realBloodOxyge,
ECell_BLE_REPORT_COMMAND_cameraControl, ECell_BLE_REPORT_COMMAND_cameraControl,
ECell_BLE_REPORT_COMMAND_findPhone, ECell_BLE_REPORT_COMMAND_findPhone,
ECell_BLE_REPORT_COMMAND_realSport,
}; };
#endif /* Enum_h */ #endif /* Enum_h */

9
Products/ECellBluetooth.framework/Headers/ECellBluetoothDelegate.h

@ -113,6 +113,15 @@ didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic
error:(nullable NSError *)error; error:(nullable NSError *)error;
/**
* @method
*
* @param reportCmd
* @param json
*/
- (void)getDeviceReportData:(ECell_BLE_REPORT_COMMAND)reportCmd
json:(NSDictionary *)json;
@end @end

BIN
Products/ECellBluetooth.framework/Info.plist

Binary file not shown.

2
Products/ECellBluetooth.framework/Modules/module.modulemap

@ -1,6 +1,6 @@
framework module ECellBluetooth { framework module ECellBluetooth {
umbrella header "ECellBluetooth.h" umbrella header "ECellBluetooth.h"
export * export *
module * { export * } module * { export * }
} }

BIN
Products/ECellBluetooth.framework/_CodeSignature/CodeDirectory

Binary file not shown.

BIN
Products/ECellBluetooth.framework/_CodeSignature/CodeRequirements-1

Binary file not shown.

20
Products/ECellBluetooth.framework/_CodeSignature/CodeResources

@ -14,7 +14,7 @@
</data> </data>
<key>Headers/ECellBLEEnum.h</key> <key>Headers/ECellBLEEnum.h</key>
<data> <data>
m6A87x1MRIUkyc9cfOpHA9WaSR0= QfmdeF5p/Glh5GSwQ6MknKnZFPc=
</data> </data>
<key>Headers/ECellBLEItem.h</key> <key>Headers/ECellBLEItem.h</key>
<data> <data>
@ -30,7 +30,7 @@
</data> </data>
<key>Headers/ECellBluetoothDelegate.h</key> <key>Headers/ECellBluetoothDelegate.h</key>
<data> <data>
k9S4OB2a3mdpjNgOoPfTWPVCQPI= w22HfxrWfNHg5jz32jodGuQB8XU=
</data> </data>
<key>Headers/ECellBluetoothManager.h</key> <key>Headers/ECellBluetoothManager.h</key>
<data> <data>
@ -50,11 +50,11 @@
</data> </data>
<key>Info.plist</key> <key>Info.plist</key>
<data> <data>
pqeAbgeeXkEae1qv5mpn+52/dfw= ONiLZXY5aGoZbM7OJqWUeT36rgE=
</data> </data>
<key>Modules/module.modulemap</key> <key>Modules/module.modulemap</key>
<data> <data>
PXti1YxWgR1LA7cvGarfZyQC84E= Z937lFLV4aKZsABaSmxi2V5Twdk=
</data> </data>
</dict> </dict>
<key>files2</key> <key>files2</key>
@ -85,11 +85,11 @@
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
m6A87x1MRIUkyc9cfOpHA9WaSR0= QfmdeF5p/Glh5GSwQ6MknKnZFPc=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
gI45lfK3rYJoGeECq+sew2gbrTeMBJoHbzrc4POaUVU= newAgSW42VEWxn8tfki2NjKdTWwUkieVkCQyFdcqCAY=
</data> </data>
</dict> </dict>
<key>Headers/ECellBLEItem.h</key> <key>Headers/ECellBLEItem.h</key>
@ -129,11 +129,11 @@
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
k9S4OB2a3mdpjNgOoPfTWPVCQPI= w22HfxrWfNHg5jz32jodGuQB8XU=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
lpEEgNgcLDTq91c/GMW24TgoPqTTX61RQ16ZdsBMQFw= cr6Q8r9PTRlCoBsoBggku04/FP6t2UjF+6jawv/O94c=
</data> </data>
</dict> </dict>
<key>Headers/ECellBluetoothManager.h</key> <key>Headers/ECellBluetoothManager.h</key>
@ -184,11 +184,11 @@
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
PXti1YxWgR1LA7cvGarfZyQC84E= Z937lFLV4aKZsABaSmxi2V5Twdk=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
kXnRSJtl1OHV/z5LftNX6Y4woDpaITk1mw9gWNUR1Yo= TwgXOS6FaKnuJ6r2Grc43TvUtSIuVeHt6g1aQpESu5g=
</data> </data>
</dict> </dict>
</dict> </dict>

BIN
Products/ECellBluetooth.framework/_CodeSignature/CodeSignature

Binary file not shown.
Loading…
Cancel
Save