Datalogic .NET SDK
GetBatteryInfo (Method)
Syntax
public static Boolean GetBatteryInfo(out BatteryInfo info);
Description
Gets the Smart Battery information.
Parameters Table
|
Type |
Parameter |
Description |
[out] |
BatteryInfo |
info |
A Device.BatteryInfo object to return the battery information. |
|
|
|
|
[returns] |
Boolean
|
|
Returns TRUE if the information is successfully retrieved, otherwise FALSE. |
[on error] |
FALSE |
|
- |
Example
private void btnBatteryInfo_Click(object sender, EventArgs e) { /* Device.GetBatteryInfo() */ bool b = false; Device.BatteryInfo dvcBattInfo = new Device.BatteryInfo();
b = Device.GetBatteryInfo(out dvcBattInfo);
listView1.Items.Add(new ListViewItem(new string[] { "Battery Capacity", dvcBattInfo.Capacity.ToString() })); // Other Adds... See full example #24. }
|
See Also
Device.BatteryInfo (Sub-Class), Example #024.
Copyright © Datalogic ADC. All Right Reserved