Heartbeat neads to be on ToRadio to actually work

This commit is contained in:
Ben Meadors 2024-03-15 07:53:58 -05:00
parent 7e3ee8cd96
commit bc2ceb23a5
2 changed files with 14 additions and 9 deletions

View file

@ -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 {
}

View file

@ -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;
}
}
@ -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 {
}