12-01-2018 10:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-01-2018 10:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hey all,
I'm just getting started with the Fitbit SDK and making a clock face!
When importing the BodyPresence sensor (via the docs) as such:
import { BodyPresenceSensor } from "body-presence";
My Versa simulator throws this error:
Unhandled Error: Cannot find module 'body-presence'
The HeartRateMonitor docs state to use the body-presence module to detect whether the Fitbit is on wrist (https://dev.fitbit.com/build/guides/sensors/heart-rate/#detecting-off-wrist) and I copied the import right from there. Am I missing a step?
Any help would be much appreciated!
Thanks,
-Alex
Answered! Go to the Best Answer.
Accepted Solutions
12-01-2018 11:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-01-2018 11:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Nevermind, fixed it. I had my SDK set to v1, and setting it to v2 fixed it. I guess the BPS was only added in v2!

12-01-2018 11:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-01-2018 11:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Nevermind, fixed it. I had my SDK set to v1, and setting it to v2 fixed it. I guess the BPS was only added in v2!

