Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ To get started with the OpenEarable Flutter package, follow these steps:

## Add custom Wearable Support
Learn more about how to add support for your own wearable devices in the [Adding Custom Wearable Support](https://github.com/OpenEarable/open_earable_flutter/blob/main/doc/ADD_CUSTOM_WEARABLE.md) documentation.

## Firmware Updates
Learn more about firmware-over-the-air updates in the [FOTA documentation](https://github.com/OpenEarable/open_earable_flutter/blob/main/doc/FOTA.md).
25 changes: 25 additions & 0 deletions doc/CAPABILITIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,31 @@ if (deviceIdentifierService != null) {
}
```

#### FotaCapability

Provides the device-level abstraction for firmware update operations.

```dart
final fota = wearable.getCapability<FotaCapability>();
if (fota != null) {
final request = fota.createFirmwareUpdateRequest(selectedFirmware);
}
```

Use `createFirmwareUpdateRequest(...)` to build a wearable-specific update
request without depending on the underlying FOTA backend.

#### FotaSlotInfoCapability

Provides firmware slot or image-table state for FOTA backends that expose it.

```dart
final slotInfo = wearable.getCapability<FotaSlotInfoCapability>();
if (slotInfo != null) {
final slots = await slotInfo.readFirmwareSlots();
}
```

---

## Summary
Expand Down
Loading
Loading