Important update:

- Used new core protocol function to create command
- Bug fix: use correct sequence: From, To, Command
This commit is contained in:
Charl Wentzel
2017-07-08 22:39:32 +02:00
parent 4802452a7c
commit b900d735b9

View File

@@ -28,10 +28,7 @@ CWatchdogCore::CWatchdogCore( const char * WatchdogName, const int pInterval, CL
{ {
// Create protocol // Create protocol
Protocol = new CLiteProtocol( 50, '\x01', '\x02', '\x00' ); Protocol = new CLiteProtocol( 50, '\x01', '\x02', '\x00' );
Protocol->NewCommandStr(); Protocol->CreateCommand( ProcessName, WatchdogName, "ping" );
Protocol->AppendParam( WatchdogName, strlen(WatchdogName) );
Protocol->AppendParam( ProcessName, strlen(ProcessName) );
Protocol->AppendParam( "ping", 4 );
// Start timer // Start timer
PingTimeout = 500; PingTimeout = 500;