kopia lustrzana https://github.com/meshtastic/protobufs
keep the minimum set of records needed for <1.2 app compatibility
rodzic
3edb02dabb
commit
f16485d556
|
@ -421,11 +421,11 @@ at which point the next item in the FIFO will be populated.
|
||||||
| ----- | ---- | ----- | ----------- |
|
| ----- | ---- | ----- | ----------- |
|
||||||
| num | [uint32](#uint32) | | The packet num, used to allow the phone to request missing read packets from the FIFO, see our bluetooth docs |
|
| num | [uint32](#uint32) | | The packet num, used to allow the phone to request missing read packets from the FIFO, see our bluetooth docs |
|
||||||
| packet | [MeshPacket](#MeshPacket) | | |
|
| packet | [MeshPacket](#MeshPacket) | | |
|
||||||
| my_info | [MyNodeInfo](#MyNodeInfo) | | Tells the phone what our node number is, can be -1 if we've not yet joined a mesh. |
|
| my_info | [MyNodeInfo](#MyNodeInfo) | | Tells the phone what our node number is, can be -1 if we've not yet joined a mesh. NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps. |
|
||||||
| node_info | [NodeInfo](#NodeInfo) | | One packet is sent for each node in the on radio DB starts over with the first node in our DB |
|
| node_info | [NodeInfo](#NodeInfo) | | One packet is sent for each node in the on radio DB starts over with the first node in our DB |
|
||||||
| log_record | [LogRecord](#LogRecord) | | set to send debug console output over our protobuf stream |
|
| log_record | [LogRecord](#LogRecord) | | set to send debug console output over our protobuf stream |
|
||||||
| config_complete_id | [uint32](#uint32) | | sent as true once the device has finished sending all of the responses to want_config recipient should check if this ID matches our original request nonce, if not, it means your config responses haven't started yet. |
|
| config_complete_id | [uint32](#uint32) | | sent as true once the device has finished sending all of the responses to want_config recipient should check if this ID matches our original request nonce, if not, it means your config responses haven't started yet. NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps. |
|
||||||
| rebooted | [bool](#bool) | | Sent to tell clients the radio has just rebooted. Set to true if present. Not used on all transports, currently just used for the serial console. |
|
| rebooted | [bool](#bool) | | Sent to tell clients the radio has just rebooted. Set to true if present. Not used on all transports, currently just used for the serial console. NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps. |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
17
mesh.proto
17
mesh.proto
|
@ -690,6 +690,10 @@ message FromRadio {
|
||||||
|
|
||||||
/* In the <1.2 versions packet had ID 2, to prevent confusing old apps with our new packets, we've changed */
|
/* In the <1.2 versions packet had ID 2, to prevent confusing old apps with our new packets, we've changed */
|
||||||
reserved 2;
|
reserved 2;
|
||||||
|
/* In the <1.2 versions nodeinfo had ID 4, to prevent confusing old apps with our new packets, we've changed */
|
||||||
|
reserved 4;
|
||||||
|
/* In the <1.2 versions nodeinfo had ID 4, to prevent confusing old apps with our new packets, we've changed */
|
||||||
|
reserved 6;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The packet num, used to allow the phone to request missing read packets from the FIFO,
|
* The packet num, used to allow the phone to request missing read packets from the FIFO,
|
||||||
|
@ -703,14 +707,15 @@ message FromRadio {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tells the phone what our node number is, can be -1 if we've not yet joined a mesh.
|
* Tells the phone what our node number is, can be -1 if we've not yet joined a mesh.
|
||||||
|
* NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps.
|
||||||
*/
|
*/
|
||||||
MyNodeInfo my_info = 3;
|
MyNodeInfo my_info = 3;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* One packet is sent for each node in the on radio DB
|
* One packet is sent for each node in the on radio DB
|
||||||
* starts over with the first node in our DB
|
* starts over with the first node in our DB
|
||||||
*/
|
*/
|
||||||
NodeInfo node_info = 4;
|
NodeInfo node_info = 5;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* set to send debug console output over our protobuf stream
|
* set to send debug console output over our protobuf stream
|
||||||
|
@ -721,12 +726,14 @@ message FromRadio {
|
||||||
* sent as true once the device has finished sending all of the responses to want_config
|
* sent as true once the device has finished sending all of the responses to want_config
|
||||||
* recipient should check if this ID matches our original request nonce, if
|
* recipient should check if this ID matches our original request nonce, if
|
||||||
* not, it means your config responses haven't started yet.
|
* not, it means your config responses haven't started yet.
|
||||||
|
* NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps.
|
||||||
*/
|
*/
|
||||||
uint32 config_complete_id = 8;
|
uint32 config_complete_id = 8;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sent to tell clients the radio has just rebooted. Set to true if present.
|
* Sent to tell clients the radio has just rebooted. Set to true if present.
|
||||||
* Not used on all transports, currently just used for the serial console.
|
* Not used on all transports, currently just used for the serial console.
|
||||||
|
* NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps.
|
||||||
*/
|
*/
|
||||||
bool rebooted = 9;
|
bool rebooted = 9;
|
||||||
}
|
}
|
||||||
|
@ -739,8 +746,10 @@ message FromRadio {
|
||||||
*/
|
*/
|
||||||
message ToRadio {
|
message ToRadio {
|
||||||
|
|
||||||
/* In the <1.2 versions packet had ID 2, to prevent confusing old apps with our new packets, we've changed */
|
/* In the <1.2 versions packet had ID 2, to prevent confusing old apps with our new packets, we've changed.
|
||||||
reserved 1;
|
101-103 were used for set_radio, set_owner, set_channel
|
||||||
|
*/
|
||||||
|
reserved 1, 101, 102, 103;
|
||||||
|
|
||||||
oneof payloadVariant {
|
oneof payloadVariant {
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue