Public Classes and Their Purposes
- DreisamLib
- Main header file. Import all SDK features via
#import <DreisamLib/DreisamLib.h>
- Main header file. Import all SDK features via
- DreisamLibManage
- Central management class used to initialize and control the SDK lifecycle
- DreisamBuilderParam
- Builder class for configuring SDK initialization parameters
- BleManage
- Bluetooth module controller. Accessible via
[DreisamLibManage shareLib].bleManage
- Bluetooth module controller. Accessible via
- DreisamGlucoseModel
- Data model representing a glucose reading, including value and timestamp
- DreisamEnum
- Enumerations defining callback status codes and Bluetooth states
SDK Initialization
Initialize the SDK
- Purpose: Initializes the SDK with required configuration
- Parameters:
- hideLog - Set to
YESto suppress internal logging. Default isNO(logs enabled). - appId - Your unique App ID issued from the Dreisam Developer Portal
- hideLog - Set to
Deinitialize the SDK
- Purpose: Releases all internal resources held by the SDK.
- When to Use: Typically called when a user logs out or the app terminates.
Device Connection Management
Connect to a Bluetooth Device
- Function: Connect a device with the specified name
- Parameter:
deviceName– The advertised name of the target Bluetooth device
Disconnect from Device
- Purpose: Terminates the active Bluetooth connection.
- Use Case: Trigger during logout or when switching devices.
Get Signal Strength (RSSI)
Fetch Historical Data
- Purpose: Retrieves stored glucose readings within a specified time window.
- Parameters: Unix timestamps (
startTime,endTime).
State Monitoring & Callbacks
Bluetooth Connection State
- Connection State Enumerations:
- DreisamEnumStateAuthenticationFailure //Device license verification failed
- DreisamEnumStateDisconnect //Device disconnected
- DreisamEnumStateConnected //Successfully connected
- DreisamEnumStateIndicateLoading //Indicates ongoing operation (e.g., show loading UI)
- DreisamEnumBleStatePoweredOn //Phone’s Bluetooth is ON
- DreisamEnumBleStatePoweredOff //Phone’s Bluetooth is OFF
Sync Started
- Callback parameter: totalCount, the amount to synchronize
Sync Progress
Sync Completed
Real-Time Data Updates
- Real-time data is transmitted approximately once every 3 minutes by the device
