Pally BLE Scale SDK for iOS
Pally Scale SDK (iOS version) provides the API to access Pally BLE scale. Users do not need to know the Core Bluetooth library to use this API.
Release Notes
Sept. 20, 2015: updated for iOS9 with setting ENABLE_BITCODE. added anther demo program.
This is the first Beta release of Pally BLE scale SDK. The current capability is limited to single user data management. The next Beta release will include multi-user data management.
Requirement
- iOS devices with Bluetooth 4.0/Bluetooth Low Energy (iPhone 4S/5 or later, iPad 3/4/Mini or later, iPod Touch 5th generation or later)
- iOS 7.0 or later.
Installing the SDK
- Download PallySDK_v1.0_20150914 , SDK includes “libPallySDK.a”, “pally.db” and a folder named “include”
- Import SDK into your project. Open your project in Xcode, drag and drop all SDK files into you project.
- Add “Link Binary With Libraries” into your project.
Using the SDK
The following are demo programs to show the use this SDK: PallySDKDemo and PallySDKDemo2.
[Scan]:
Start to discovery BLE device.
[Disconnect]:
Disconnect current BLE link.
[Set UTC Timestamp]:
Send command : Set UTC Timestamp with iOS current time.
[Fetch Remote Records]:
Send command : Request new weight records on scale.
[Clear Remote Records]:
Send command: Clear all weight records on scale.
[Reset Remote BondInfo]:
Send command: Clear all bonding information on the scale.
[Create Demo Records]:
Create demo weight records (2 records/day * 365 day)
[Clear Local Records]:
Clear all weight records in the local database.
[Show Local Records]:
Show all weight records in the local database.