BrainBit for developers Subscribe for updates Visit website

BatteryChannel

Package: com.neuromd.neurosdk

Data channel of the device battery level. It inherits from the BaseChannel base class. The notification about new data in the channel is carried out only when the device is connected.

Includes the following fields:

BatteryChannel

Constructor

Options:

device: Device class instance

ReadData

A method that returns the requested amount of data. The resulting values contain information about the battery level in the range from 0 to 100%.

Options:

offset: Offset from the start of data

 

length: Required number of device battery level readings. If there is not enough data in the channel, then they will be filled with zeros.

 

Return value:

data array int, size length.