|
|
@@ -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 |