BrainBit for developers Subscribe for updates Visit website

BatteryIntChannel

 

#include “cbattery-channel.h”

 

Data channel of the device battery level. It inherits the basic structure of ​AnyChannel channels. Notification about new data in the channel is carried out only when the device is connected.

Description

create_BatteryIntChannel

Function. Creating a charge level channel.

Creates a charge level channel.

Options:

device_ptr

Description: pointer to the currently connected device

Data type: Device*

Return value:

Description: Charge level channel

Data type: BatteryIntChannel*.

BatteryIntChannel_get_buffer_size

Function. Channel buffer request.

Lets get the channel buffer.
Options:

channel

Description: pointer to the charge level channel

Data type: BatteryIntChannel*

out_buffer_size

Description: pointer to the length of the channel buffer.

Data type: size_t *

Return value:

Description: An indication of an error. More details sdk_error

Data type: int.