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

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);