<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=3043170519342045&amp;ev=PageView&amp;noscript=1">

Syntax

#include "j2534_v0404.h"

long PassThruClose(unsigned long DeviceID);


Description
Close all communication with the PassThru device. All channels will be disconnected from the network, periodic messages will halt, and the hardware will return to its default state.

Parameters

DeviceID - Vehicle interface identifier

See Also: PassThruOpen


Example:


unsigned long Flags = 0;
unsigned long ChannelID;
unsigned long DeviceID;

PassThruOpen(NULL, &DeviceID);
PassThruConnect(DeviceID, ISO15765, Flags, 500000, &ChannelID);

// Perform vehicle communication here

PassThruDisconnect(ChannelID);
PassThruClose(DeviceID);

BACK