mirror of
https://codeberg.org/icewind/tasmota-mqtt-client.git
synced 2026-06-03 10:14:10 +02:00
expose md5 in download output
This commit is contained in:
parent
82cb784ef3
commit
70b2874d3b
4 changed files with 13 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ struct DownloadState {
|
|||
pub struct DownloadedFile {
|
||||
pub name: String,
|
||||
pub data: Bytes,
|
||||
pub md5: [u8; 16],
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
|
|
@ -131,5 +132,6 @@ pub async fn download_config(
|
|||
Ok(DownloadedFile {
|
||||
name: state.name,
|
||||
data: state.data.freeze(),
|
||||
md5: state.md5,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue