Merge pull request #525 from meshtastic/file-manifest

Add FileInfo packet to FromRadio
pull/526/head
Ben Meadors 2024-06-24 20:25:34 -05:00 zatwierdzone przez GitHub
commit a3030d5ff1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -43,6 +43,8 @@
*LogRecord.message max_size:64
*LogRecord.source max_size:8
*FileInfo.file_name max_size:228
# MyMessage.name max_size:40
# or fixed_length or fixed_count, or max_count

Wyświetl plik

@ -1459,9 +1459,29 @@ message FromRadio {
* MQTT Client Proxy Message (device sending to client / phone for publishing to MQTT)
*/
MqttClientProxyMessage mqttClientProxyMessage = 14;
/*
* File system manifest messages
*/
FileInfo fileInfo = 15;
}
}
/*
* Individual File info for the device
*/
message FileInfo {
/*
* The fully qualified path of the file
*/
string file_name = 1;
/*
* The size of the file in bytes
*/
uint32 size_bytes = 2;
}
/*
* Packets/commands to the radio will be written (reliably) to the toRadio characteristic.
* Once the write completes the phone can assume it is handled.