Ver código fonte

1111

tags/v1.3.3
iot_user 5 anos atrás
pai
commit
473012a5d0
2 arquivos alterados com 16 adições e 16 exclusões
  1. 7
    7
      README.md
  2. 9
    9
      README_CN.md

+ 7
- 7
README.md Ver arquivo

@@ -1,13 +1,13 @@
#iFreshSDK instructions
# iFreshSDK instructions

[中文版](README_CN.md)

##The conditions of use
## The conditions of use
> * iOS 8.0 and above.
> * The Bluetooth version used by the device requires 4.0 and above.
> * Need to add iFreshSDK.framework package dependency;
> * 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);
2.Add the following code to AppDelegate:
```
@@ -17,10 +17,10 @@
    return YES;
}
```
##The version update information
## The version update information
For details, please see the "Good Nutrition SDK Release Notes.doc" document.

##Start integration
## Start integration
1. Import iFreshSDK.framework
2. Add Bluetooth permissions:
     Add “Privacy - Bluetooth Peripheral Usage Description” to the Info.plist file
@@ -187,7 +187,7 @@ Setting weight
*/
- (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:
```
// Bluetooth callback value:
@@ -246,7 +246,7 @@ To convert data according to the unit, please call the following method:
*/
+ (NSString *)kgTolb:(NSString *)weightValue;
```
##Coffee scale timing function
## Coffee scale timing function
Send instructions to Bluetooth
```
//start

+ 9
- 9
README_CN.md Ver arquivo

@@ -1,14 +1,14 @@
#iFreshSDK使用说明
# iFreshSDK使用说明

[Englisth](README.md)

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

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

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

Carregando…
Cancelar
Salvar