DreisamLib SDK 1.0.0 Update NotesI. Update OverviewThe newly released DreisamLib SDK focuses on implementing device connection and blood glucose data interaction capabilities. It provides core functions such as lightweight initialization, a complete device connection link, data synchronization, and historical query, which is suitable for the development of applications that need to interface with blood glucose devices.II. Core Function Updates
Initialization Management: Provides dual interfaces of preInit (pre-initialization, no impact on App cold start) and initSDK (formal initialization), combined with the unInit interface to realize resource release, making the initialization process more flexible and controllable.
Device Connection Control: Covers the full-link capabilities such as connection precondition check (checkPreConditions), specified device connection (connectDevice), connection status query (isDeviceConnected), and disconnection (disconnect), supporting connection status monitoring and log callback.
Heartbeat Detection: Adds startHeartbeat and stopHeartbeat interfaces to support heartbeat keep-alive and stop detection after device connection.
Data Interaction Capabilities: Supports real-time blood glucose data callback, historical data acquisition within a specified time range, and data synchronization progress monitoring. The core data model is GlucoseBean, which carries complete blood glucose-related information.
Listener and Enumeration Support: Provides 6 types of listener interfaces (covering scenarios such as connection status, data synchronization, and logs), and defines the ConnectingState connection status enumeration to simplify development and docking.