Remote Control Battery Level
Displays the battery status of the remote control for a device.
Note: Supported only on PanaCast 50.
Datapoint
Name in Jabra SDK | DeviceLoggingEventArgs.Data["RemoteControlBatteryStatus"] |
Trigger | When the battery status level changes. |
Event Subscription | IDeviceService.DeviceLoggingInput |
Value Range | 0 - 100 |
Code Sample
{{ site/global/docs/telemetry-datapoints/_include_codesample_description.inc }}
using System;
using JabraSDK;
using Newtonsoft.Json.Linq;
namespace Jabra.TelemetryExample
{
public class TelemetryPrinter
{
public TelemetryPrinter(IDeviceService deviceService)
{
deviceService.DeviceAdded += OnDeviceAddedEvent;
deviceService.DeviceLoggingInput += OnDeviceLoggingInputEvent;
}
private void OnDeviceAddedEvent(object sender, DeviceAddedEventArgs e)
{
// Return if device logging is _not_ supported by devices
if (!e.Device.IsFeatureSupported(DeviceFeature.Logging))
return;
// Return if device logging is already enabled for device
if (e.Device.IsDeviceLogEnabled)
return;
try
{
var status = e.Device.DeviceLoggingConfiguration(true);
if (status == DeviceStatus.ReturnOk)
Console.WriteLine($"Device logging enabled for: {e.Device.Name}");
}
catch (Exception)
{
// Exception raised when enabling device logging
}
}
private void OnDeviceLoggingInputEvent(object sender, DeviceLoggingEventArgs e)
{
var eventPayload = JObject.Parse(e.Data);
var remoteControlBatteryLevelToken = eventPayload["RemoteControlBatteryStatus"];
if (remoteControlBatteryLevelToken != null)
{
Console.WriteLine($"Remote control battery level: {remoteControlBatteryLevelToken}%");
}
}
}
}