This function stops the transmission of a periodic message and deletes the message itself.
long PassThruStopMsgFilter(unsigned long ChannelID, unsigned long MsgID)
Definition | Description |
---|---|
STATUS_NOERROR | Function completed successfully |
ERR_DEVICE_NOT_CONNECTED | No connection to adapter. Possible reasons: The adapter is turned off, there is no network, or the IP address is not set correctly. |
ERR_INVALID_DEVICE_ID | Set a non-existent adapter ID DeviceID |
ERR_INVALID_CHANNEL_ID | Set a non-existent channel identifier ChannelID |
ERR_INVALID_MSG_ID | MsgID Periodic Message Identifier Specified |
ERR_FAILED | Defined by the J2534 standard. In the adapter, it is not used for this function. |
#include "j2534_lib.hpp"
unsigned long ChannelID;
unsigned long MsgID;
long Ret;
Ret = PassThruStopPeriodicMsg(ChannelID, MsgID);
if (Ret != STATUS_NOERROR)
{ // Error handling
}