I was having some trouble accessing the heartbeat sensor on the Moto 360 in an Android wear project. Using the code:
for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_ALL)) {
Log.e("HB Service", sensor.getName() + ": " + sensor.getType());
}
I found out that the heartbeat sensor and wellness sensors both don't show up in this list. I've tried using Sensor.TYPE_HEART_RATE as well, but either way, registering the listener says that the sensor is null. Anyone have advice to get this working?
Make sure that you put the permission below for the body data in your Manifest.xml:
Another workaround in this thread is:
Also make sure that you have the latest SDK. Hope this helps!