android / fit-samples

Multiple samples showing the best practices using the Fit APIs on Android.
Apache License 2.0
152 stars 113 forks source link

Limit record of heart rate #72

Open lambui09 opened 5 months ago

lambui09 commented 5 months ago
DataReadRequest.Builder()
             .read(DataType.TYPE_HEART_RATE_BPM)
             .enableServerQueries()
             .bucketByTime(1, TimeUnit.MINUTES)
             .setTimeRange(startTime, endTime, TimeUnit.MILLISECONDS)
             .build()

I tried to get data for 2 months, but got the error: onError -- 5022: Cannot bucket into more than 86400 intervals. -- null If I transmit. SetLimit(1000) Then there will be data returned. What is the limit of the record limit API?

lambui09 commented 5 months ago

pls help me to share some information for this?

DanAlbert commented 5 months ago

I've got no idea why you CC'd me.

lambui09 commented 5 months ago

sorry, I mistook you for the owner.