ES Libraries Documentation

Online documentation:
Home
What Sensor Data?
Collecting Sensor Data
Formatting Sensor Data
Store/Transfer Data
Research
Contributing
Project Github Page

Battery

The battery sensor returns information about the device's current energy state.

This sensor requires the 'battery stats' permission. The JSON format for a sample from this sensor is:

{
	"userid":"test-user-id",
	"deviceid":"test-device-id",
	"senseStartTime":"15:46:50:277 30 06 2015 +0100 GMT+01:00",
	"senseStartTimeMillis":1435675610277,
	"dataType":"Battery",
	"level":70,
	"scale":100,
	"temperature":337,
	"voltage":4010,
	"plugged":2,
	"status":"BATTERY_STATUS_CHARGING",
	"health":"BATTERY_HEALTH_GOOD"
}