Browse Source

1111

tags/v1.3.3
iot_user 5 years ago
parent
commit
473012a5d0
2 changed files with 16 additions and 16 deletions
  1. 7
    7
      README.md
  2. 9
    9
      README_CN.md

+ 7
- 7
README.md View File

#iFreshSDK instructions
# iFreshSDK instructions


[中文版](README_CN.md) [中文版](README_CN.md)


##The conditions of use
## The conditions of use
> * iOS 8.0 and above. > * iOS 8.0 and above.
> * The Bluetooth version used by the device requires 4.0 and above. > * The Bluetooth version used by the device requires 4.0 and above.
> * Need to add iFreshSDK.framework package dependency; > * Need to add iFreshSDK.framework package dependency;
> * Apply for the key and secret of sdk, application address: http://sdk.aicare.net.cn > * Apply for the key and secret of sdk, application address: http://sdk.aicare.net.cn
##The document description
## The document description
1.iFreshSDK.framework (package name raytao.pingwang.iFreshDemo); 1.iFreshSDK.framework (package name raytao.pingwang.iFreshDemo);
2.Add the following code to AppDelegate: 2.Add the following code to AppDelegate:
``` ```
    return YES;     return YES;
} }
``` ```
##The version update information
## The version update information
For details, please see the "Good Nutrition SDK Release Notes.doc" document. For details, please see the "Good Nutrition SDK Release Notes.doc" document.


##Start integration
## Start integration
1. Import iFreshSDK.framework 1. Import iFreshSDK.framework
2. Add Bluetooth permissions: 2. Add Bluetooth permissions:
     Add “Privacy - Bluetooth Peripheral Usage Description” to the Info.plist file      Add “Privacy - Bluetooth Peripheral Usage Description” to the Info.plist file
*/ */
- (void)turnOffDevice; - (void)turnOffDevice;
``` ```
##Tools and fat model "iFreshModel"
## Tools and fat model "iFreshModel"
The following data is the data returned by the proxy method after the SDK is processed: The following data is the data returned by the proxy method after the SDK is processed:
``` ```
// Bluetooth callback value: // Bluetooth callback value:
*/ */
+ (NSString *)kgTolb:(NSString *)weightValue; + (NSString *)kgTolb:(NSString *)weightValue;
``` ```
##Coffee scale timing function
## Coffee scale timing function
Send instructions to Bluetooth Send instructions to Bluetooth
``` ```
//start //start

+ 9
- 9
README_CN.md View File

#iFreshSDK使用说明
# iFreshSDK使用说明


[Englisth](README.md) [Englisth](README.md)


##使用条件:
## 使用条件:
> * iOS 8.0及以上版本。 > * iOS 8.0及以上版本。
> * 设备所使用蓝牙版本需要4.0及以上。 > * 设备所使用蓝牙版本需要4.0及以上。
> * 需添加iFreshSDK.framework包依赖; > * 需添加iFreshSDK.framework包依赖;
> * 申请sdk的key和secret,申请地址:http://sdk.aicare.net.cn > * 申请sdk的key和secret,申请地址:http://sdk.aicare.net.cn


##文件说明:
## 文件说明:
1. iFreshSDK.framework(包名raytao.pingwang.iFreshDemo) 1. iFreshSDK.framework(包名raytao.pingwang.iFreshDemo)
2. 在AppDelegate中加入如下代码: 2. 在AppDelegate中加入如下代码:
``` ```
} }
``` ```


##版本更新信息
## 版本更新信息
详情请见“好营养SDK发布说明.doc”文档 详情请见“好营养SDK发布说明.doc”文档
##开始集成
## 开始集成
1.导入iFreshSDK.framework 1.导入iFreshSDK.framework
2.添加蓝牙权限: 2.添加蓝牙权限:
Info.plist文件中添加 Privacy - Bluetooth Peripheral Usage Description Info.plist文件中添加 Privacy - Bluetooth Peripheral Usage Description
##发现设备
## 发现设备
1.调用扫描方法 1.调用扫描方法
``` ```
[[iFreshSDK shareManager] bleDoScan]; [[iFreshSDK shareManager] bleDoScan];
 */  */
-(void)bluetoothManagerReturePenetrateData:(NSData *)data; -(void)bluetoothManagerReturePenetrateData:(NSData *)data;
``` ```
##与设备通信
## 与设备通信
``` ```
/* /*
 * 写入数据  * 写入数据
 */  */
- (void)turnOffDevice; - (void)turnOffDevice;
``` ```
##工具类及胖模型”iFreshModel”
## 工具类及胖模型”iFreshModel”
其中以下数据为SDK处理后代理方法返回的数据: 其中以下数据为SDK处理后代理方法返回的数据:
``` ```
// 蓝牙回调数值: // 蓝牙回调数值:
 */  */
+ (NSString *)kgTolb:(NSString *)weightValue; + (NSString *)kgTolb:(NSString *)weightValue;
``` ```
##咖啡秤计时功能
## 咖啡秤计时功能
发送指令给蓝牙 发送指令给蓝牙
``` ```
//开始计时 //开始计时

Loading…
Cancel
Save