mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Merge pull request #509 from meshtastic/chunked-delivery-plumbing
Chunked payload for PoC binary transfer
This commit is contained in:
commit
5d0a75e6ec
2 changed files with 52 additions and 0 deletions
|
|
@ -59,3 +59,7 @@
|
|||
*MqttClientProxyMessage.topic max_size:60
|
||||
*MqttClientProxyMessage.data max_size:435
|
||||
*MqttClientProxyMessage.text max_size:435
|
||||
|
||||
*ChunkedPayload.chunk_count int_size:16
|
||||
*ChunkedPayload.chunk_index int_size:16
|
||||
*ChunkedPayload.payload_chunk max_size:228
|
||||
|
|
|
|||
|
|
@ -1633,3 +1633,51 @@ message NodeRemoteHardwarePin {
|
|||
*/
|
||||
RemoteHardwarePin pin = 2;
|
||||
}
|
||||
|
||||
message ChunkedPayload {
|
||||
/*
|
||||
* The ID of the entire payload
|
||||
*/
|
||||
uint32 payload_id = 1;
|
||||
|
||||
/*
|
||||
* The total number of chunks in the payload
|
||||
*/
|
||||
uint32 chunk_count = 2;
|
||||
|
||||
/*
|
||||
* The current chunk index in the total
|
||||
*/
|
||||
uint32 chunk_index = 3;
|
||||
|
||||
/*
|
||||
* The binary data of the current chunk
|
||||
*/
|
||||
bytes payload_chunk = 4;
|
||||
}
|
||||
|
||||
/*
|
||||
* Responses to a ChunkedPayload request
|
||||
*/
|
||||
message ChunkedPayloadResponse {
|
||||
/*
|
||||
* The ID of the entire payload
|
||||
*/
|
||||
uint32 payload_id = 1;
|
||||
|
||||
oneof payload_variant {
|
||||
/*
|
||||
* Request to transfer chunked payload
|
||||
*/
|
||||
bool request_transfer = 2;
|
||||
|
||||
/*
|
||||
* Accept the transfer chunked payload
|
||||
*/
|
||||
bool accept_transfer = 3;
|
||||
/*
|
||||
* Request missing indexes in the chunked payload
|
||||
*/
|
||||
repeated uint32 resend_chunks = 4;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue