perf: set default heartbeat interval to 30s

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2025-06-11 14:38:55 +08:00
parent 1cbe223d79
commit f18ee25d16
+2 -2
View File
@@ -85,7 +85,7 @@ static void usage(const char *prog)
" -p, --port=number Server port(Default is 5912)\n"
" -d, --description=string Add a description to the device(Maximum 126 bytes)\n"
" -a Auto reconnect to the server\n"
" -i number Set heartbeat interval in seconds(Default is 5s)\n"
" -i number Set heartbeat interval in seconds(Default is 30s)\n"
#ifdef SSL_SUPPORT
" -s SSL on\n"
" -C, --cacert CA certificate to verify peer against\n"
@@ -113,7 +113,7 @@ int main(int argc, char **argv)
bool background = false;
bool verbose = false;
struct rtty rtty = {
.heartbeat = 5.0,
.heartbeat = 30,
.host = "localhost",
.port = 5912,
.loop = loop,