Browse Source

v2.3-20201109 remove key

tags/v2.4
elinkthings 4 years ago
parent
commit
9114d063dd

+ 0
- 3
AIFit-Demo/AppDelegate.m View File



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//apply sdk key website http://sdk.aicare.net.cn/
[INBluetoothManager configAppKey:@"885fd30a19f54fb0" secret:@"000fec8b4dadbca6a3d4e00875"];
return YES; return YES;
} }

+ 1
- 0
AIFit-Demo/SearchDeviceVC.m View File

if ([INBluetoothManager shareManager].bleState == CBCentralManagerStatePoweredOn) { if ([INBluetoothManager shareManager].bleState == CBCentralManagerStatePoweredOn) {
[[INBluetoothManager shareManager] closeBleAndDisconnect]; //maybe your scale has been connected
[INBluetoothManager shareManager].delegate = self; [INBluetoothManager shareManager].delegate = self;
[[INBluetoothManager shareManager] startBleScan]; [[INBluetoothManager shareManager] startBleScan];
} else { } else {

+ 1
- 3
InetBleSDK/Products/InetBleSDK.framework/Headers/INBluetoothManager.h View File



@interface INBluetoothManager : NSObject @interface INBluetoothManager : NSObject


//apply sdk key website http://sdk.aicare.net.cn/
+ (void)configAppKey:(NSString *)appKey secret:(NSString *)appSecret;


+ (instancetype)shareManager; + (instancetype)shareManager;


- (void)connectToLinkScale:(DeviceModel *)linkScaleDeviceModel; - (void)connectToLinkScale:(DeviceModel *)linkScaleDeviceModel;
- (void)handleDataForBroadScale:(DeviceModel *)broadScaleDeviceModel; - (void)handleDataForBroadScale:(DeviceModel *)broadScaleDeviceModel;


//SDK使用者无需调用此方法,直接使用WriteToBLEManager来写入即可
//Don’t invoke this, just use WriteToBLEManager to write data to ble
- (void)sendDataToBle:(NSData *)data; - (void)sendDataToBle:(NSData *)data;


+ (void)enableSDKLogs:(BOOL)enable; + (void)enableSDKLogs:(BOOL)enable;

BIN
InetBleSDK/Products/InetBleSDK.framework/InetBleSDK View File


Loading…
Cancel
Save