Skip to content

Commit

Permalink
Merge pull request #465 from meshtastic/wire-heartbeat
Browse files Browse the repository at this point in the history
Heartbeat needs to be on ToRadio to actually work
  • Loading branch information
thebentern authored Mar 15, 2024
2 parents 7e3ee8c + bc2ceb2 commit cf25b39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
8 changes: 0 additions & 8 deletions meshtastic/clientonly.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,3 @@ message DeviceProfile {
*/
optional LocalModuleConfig module_config = 5;
}

/*
* A heartbeat message is sent by a node to indicate that it is still alive.
* This is currently only needed to keep serial connections alive.
*/
message Heartbeat {

}
15 changes: 14 additions & 1 deletion meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,11 @@ message ToRadio {
* MQTT Client Proxy Message (for client / phone subscribed to MQTT sending to device)
*/
MqttClientProxyMessage mqttClientProxyMessage = 6;

/*
* Heartbeat message (used to keep the device connection awake on serial)
*/
Heartbeat hearbeat = 7;
}
}

Expand Down Expand Up @@ -1561,4 +1566,12 @@ message DeviceMetadata {
* Has Remote Hardware enabled
*/
bool hasRemoteHardware = 10;
}
}

/*
* A heartbeat message is sent to the node from the client to keep the connection alive.
* This is currently only needed to keep serial connections alive, but can be used by any PhoneAPI.
*/
message Heartbeat {

}

0 comments on commit cf25b39

Please sign in to comment.