Skip to content

Commit

Permalink
keep the minimum set of records needed for <1.2 app compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksville committed Mar 2, 2021
1 parent 3edb02d commit f16485d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| packet | [MeshPacket](#MeshPacket) | | |
| my_info | [MyNodeInfo](#MyNodeInfo) | | Tells the phone what our node number is, can be -1 if we&#39;ve not yet joined a mesh. |
| my_info | [MyNodeInfo](#MyNodeInfo) | | Tells the phone what our node number is, can be -1 if we&#39;ve not yet joined a mesh. NOTE: This ID must not change - to keep (minimal) compatibility with &lt;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 |
| 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&#39;t started yet. |
| 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. |
| 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&#39;t started yet. NOTE: This ID must not change - to keep (minimal) compatibility with &lt;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. NOTE: This ID must not change - to keep (minimal) compatibility with &lt;1.2 version of android apps. |



Expand Down
17 changes: 13 additions & 4 deletions mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
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,
Expand All @@ -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.
* NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps.
*/
MyNodeInfo my_info = 3;

/*
* 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
Expand All @@ -721,12 +726,14 @@ message FromRadio {
* 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.
*/
uint32 config_complete_id = 8;

/*
* 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.
*/
bool rebooted = 9;
}
Expand All @@ -739,8 +746,10 @@ message FromRadio {
*/
message ToRadio {

/* In the <1.2 versions packet had ID 2, to prevent confusing old apps with our new packets, we've changed */
reserved 1;
/* In the <1.2 versions packet had ID 2, to prevent confusing old apps with our new packets, we've changed.
101-103 were used for set_radio, set_owner, set_channel
*/
reserved 1, 101, 102, 103;

oneof payloadVariant {

Expand Down

0 comments on commit f16485d

Please sign in to comment.