Commit cfbf7f71 authored by Ivan Tyagov's avatar Ivan Tyagov

Better printouts.

parent 0f7f8e16
...@@ -313,6 +313,10 @@ void callbackCheckHeartBeat() { ...@@ -313,6 +313,10 @@ void callbackCheckHeartBeat() {
// initial keep alive received, printout // initial keep alive received, printout
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "INITIAL HEART BEAT received: %s", coupler_id_str); UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "INITIAL HEART BEAT received: %s", coupler_id_str);
} }
else if (CURRENT_STATE == STATE_DOWN) {
// initial keep alive received, printout
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "UP (recovered): %s", coupler_id_str);
}
CURRENT_STATE = STATE_UP; CURRENT_STATE = STATE_UP;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment