Battery Charging

Decribes, if the device is charging.

Datapoint

   
Name in Jabra SDK BatteryStatusUpdateEventArgs.Charging
Trigger When device starts or stops charging.
Event Subscription IDeviceService.BatteryStatusUpdateInput
Value Range True = Device is charging.
False = Device is not charging.

Code Sample

The code sample demonstrates the event subscription. It shows how to parse the event to get back the data for the datapoint.

using System;
using JabraSDK;

namespace Jabra.TelemetryExample
{
    public class TelemetryPrinter
    {
        public TelemetryPrinter(IDeviceService deviceService)
        {
            deviceService.BatteryStatusUpdateInput += OnBatteryStateUpdatedEvent;
        }

        private void OnBatteryStateUpdatedEvent(object sender, BatteryStatusUpdateEventArgs e)
        {
            Console.WriteLine($"Battery is charging: {e.Charging}");
        }
    }
}