CGA_Bluetooth_Characteristic_BatteryLevel

public class CGA_Bluetooth_Characteristic_BatteryLevel : CGA_Bluetooth_Characteristic

This adds a specialized accessor to the Battery Level Characteristic.

  • Declaration

    Swift

    public var batteryLevel: Int? { get }

    Return Value

    0-100 (percentage of battery), or nil.

  • Declaration

    Swift

    public override var stringValue: String? { get }

    Return Value

    the battery level, as a String.

  • This returns a unique GATT UUID String for the Characteristic.

    Declaration

    Swift

    public override class var uuid: String { get }