Important update:
- Used new core protocol function to create command - Bug fix: use correct sequence: From, To, Command
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user