kopia lustrzana https://github.com/meshtastic/protobufs
FromRadio: add QueueStatus payload
Send amount of available places in the queue as well as last allocation result. Signed-off-by: Pavel Boldin <pavel.b@techspark.engineering>pull/262/head
rodzic
6048ecd2f8
commit
3b0d871ca1
|
@ -26,6 +26,10 @@
|
||||||
*MeshPacket.hop_limit int_size:8
|
*MeshPacket.hop_limit int_size:8
|
||||||
*MeshPacket.channel int_size:8
|
*MeshPacket.channel int_size:8
|
||||||
|
|
||||||
|
*QueueStatus.res int_size:8
|
||||||
|
*QueueStatus.free int_size:8
|
||||||
|
*QueueStatus.maxlen int_size:8
|
||||||
|
|
||||||
*ToRadio.payload_variant anonymous_oneof:true
|
*ToRadio.payload_variant anonymous_oneof:true
|
||||||
|
|
||||||
*FromRadio.payload_variant anonymous_oneof:true
|
*FromRadio.payload_variant anonymous_oneof:true
|
||||||
|
|
17
mesh.proto
17
mesh.proto
|
@ -1192,6 +1192,20 @@ message LogRecord {
|
||||||
Level level = 4;
|
Level level = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message QueueStatus {
|
||||||
|
/* Last attempt to queue status, ErrorCode */
|
||||||
|
int32 res = 1;
|
||||||
|
|
||||||
|
/* Free entries in the outgoing queue */
|
||||||
|
uint32 free = 2;
|
||||||
|
|
||||||
|
/* Maximum entries in the outgoing queue */
|
||||||
|
uint32 maxlen = 3;
|
||||||
|
|
||||||
|
/* What was mesh packet id that generated this response? */
|
||||||
|
uint32 mesh_packet_id = 4;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Packets from the radio to the phone will appear on the fromRadio characteristic.
|
* Packets from the radio to the phone will appear on the fromRadio characteristic.
|
||||||
* It will support READ and NOTIFY. When a new packet arrives the device will BLE notify?
|
* It will support READ and NOTIFY. When a new packet arrives the device will BLE notify?
|
||||||
|
@ -1263,6 +1277,9 @@ message FromRadio {
|
||||||
* One packet is sent for each channel
|
* One packet is sent for each channel
|
||||||
*/
|
*/
|
||||||
Channel channel = 10;
|
Channel channel = 10;
|
||||||
|
|
||||||
|
/* Queue status info */
|
||||||
|
QueueStatus queueStatus = 11;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue