02-21-2021 21:29
02-21-2021 21:29
Hi all,
When I requested sleep data via Fitbit API, I got multiple sleep sessions in a day. Sometimes, the `isMainSleep` field is true. Sometimes, it is false.
Does anybody know if we can have multiple sessions with "isMainSleep:true" in a day?
Thanks!
Meng
Answered! Go to the Best Answer.
02-22-2021 10:15
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
02-22-2021 10:15
Hi @MengL
You will only have one isMainSleep in a 24 hour period. Typically, the main sleep is the longest sleep period.
Gordon
Best Answer02-22-2021 10:15
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
02-22-2021 10:15
Hi @MengL
You will only have one isMainSleep in a 24 hour period. Typically, the main sleep is the longest sleep period.
Gordon
Best Answer02-23-2021 11:58
02-23-2021 11:58
Thank you!
Meng
Best Answer