diff --git a/WatchdogCore.cpp b/WatchdogCore.cpp index 1368a9b..1608b64 100644 --- a/WatchdogCore.cpp +++ b/WatchdogCore.cpp @@ -28,10 +28,7 @@ CWatchdogCore::CWatchdogCore( const char * WatchdogName, const int pInterval, CL { // Create protocol Protocol = new CLiteProtocol( 50, '\x01', '\x02', '\x00' ); - Protocol->NewCommandStr(); - Protocol->AppendParam( WatchdogName, strlen(WatchdogName) ); - Protocol->AppendParam( ProcessName, strlen(ProcessName) ); - Protocol->AppendParam( "ping", 4 ); + Protocol->CreateCommand( ProcessName, WatchdogName, "ping" ); // Start timer PingTimeout = 500;