BrainBit foe developers Subscribe for updates Visit website
Home
SDK
Windows
iOS
Android
DotNet
Web
Device

NTBatteryChannel

The class of the data channel of the battery charge level of the device. It inherits from the base class of channels NTBaseChannel. Notification of new data in the channel is carried out only when the device is connected.

Description

NTBatteryChannel

Constructor. Creating a charge level channel.

Creates a charge level channel.

Parameters:

device

Description: Creates a charge level channel

Data type: NTDevice

Return value:

Description: Charge level channel

Data type: NTBatteryChannel.

readData

Function. Returning the requested amount of data.

A function that returns the requested amount of data.

Parameters:

offset

Description: Offset from the start of the data

Data type: UInt

length

Description: Required number of signal samples

Data type: UInt

Return value:

Description: array of requested reports

Data type: [NSNumber].