---
title: batteryLevel
framework: Playground Bluetooth
role: symbol
role_heading: Instance Property
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothconnectionview/item/3029494-batterylevel
---

# batteryLevel

A value between 0 and 1.0 indicating a peripheral’s percent battery charge.

## Declaration

```swift
var batteryLevel: Double?
```

## See Also

### Displaying Statuses

- [firmwareStatus](playgroundbluetooth/playgroundbluetoothconnectionview/item/3029495-firmwarestatus.md)
- [PlaygroundBluetoothConnectionView.Item.FirmwareStatus](playgroundbluetooth/playgroundbluetoothconnectionview/item/firmwarestatus.md)
