Release fw 0.8.4: doc sync, System UI, BT/FM polish.
Align README, manual, and backlog to 0.8.4; add Web UI System tab for OTA/DSP uploads, serial in health header, FM seek down, and BT1035 paired list plus auto-reconnect API. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -28,12 +28,26 @@ BluetoothService::refreshStatus()
|
||||
.booted = driver_.isBooted(),
|
||||
.pairing = pairingActive_,
|
||||
.a2dpState = core::Bt1035A2dpState::Standby,
|
||||
.deviceName = {},
|
||||
.autoReconnect = 0U,
|
||||
};
|
||||
|
||||
if (!status.booted) {
|
||||
return status;
|
||||
}
|
||||
|
||||
if (auto name = driver_.queryDeviceName(); name) {
|
||||
status.deviceName = std::move(*name);
|
||||
} else {
|
||||
return std::unexpected(name.error());
|
||||
}
|
||||
|
||||
if (auto reconnect = driver_.queryAutoReconnect(); reconnect) {
|
||||
status.autoReconnect = *reconnect;
|
||||
} else {
|
||||
return std::unexpected(reconnect.error());
|
||||
}
|
||||
|
||||
auto a2dp = driver_.queryA2dpState();
|
||||
if (!a2dp) {
|
||||
return std::unexpected(a2dp.error());
|
||||
@@ -65,4 +79,16 @@ std::expected<void, bt1035::Bt1035Error> BluetoothService::disconnect()
|
||||
return driver_.disconnectA2dp();
|
||||
}
|
||||
|
||||
std::expected<std::vector<core::Bt1035PairedDevice>, bt1035::Bt1035Error>
|
||||
BluetoothService::listPaired()
|
||||
{
|
||||
return driver_.queryPairedList();
|
||||
}
|
||||
|
||||
std::expected<void, bt1035::Bt1035Error> BluetoothService::setAutoReconnect(
|
||||
std::uint8_t times)
|
||||
{
|
||||
return driver_.setAutoReconnect(times);
|
||||
}
|
||||
|
||||
} // namespace bluetooth
|
||||
|
||||
Reference in New Issue
Block a user