From ddde067eb5927bb68ef841c5b38a557cc3954305 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 29 Dec 2022 17:04:49 +0000 Subject: [PATCH] - added missing case in CS 104 client examples --- lib60870-C/examples/cs104_client/simple_client.c | 3 +++ lib60870-C/examples/tls_client/tls_client.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib60870-C/examples/cs104_client/simple_client.c b/lib60870-C/examples/cs104_client/simple_client.c index 332c28ac..20098f8e 100644 --- a/lib60870-C/examples/cs104_client/simple_client.c +++ b/lib60870-C/examples/cs104_client/simple_client.c @@ -33,6 +33,9 @@ connectionHandler (void* parameter, CS104_Connection connection, CS104_Connectio case CS104_CONNECTION_CLOSED: printf("Connection closed\n"); break; + case CS104_CONNECTION_FAILED: + printf("Failed to connect\n"); + break; case CS104_CONNECTION_STARTDT_CON_RECEIVED: printf("Received STARTDT_CON\n"); break; diff --git a/lib60870-C/examples/tls_client/tls_client.c b/lib60870-C/examples/tls_client/tls_client.c index 38897bfd..c03b8963 100644 --- a/lib60870-C/examples/tls_client/tls_client.c +++ b/lib60870-C/examples/tls_client/tls_client.c @@ -14,6 +14,9 @@ connectionHandler (void* parameter, CS104_Connection connection, CS104_Connectio case CS104_CONNECTION_CLOSED: printf("Connection closed\n"); break; + case CS104_CONNECTION_FAILED: + printf("Failed to connect\n"); + break; case CS104_CONNECTION_STARTDT_CON_RECEIVED: printf("Received STARTDT_CON\n"); break;