User manual

I2C API reference
48 © 2007-2010 Analytica GmbH
I2CCloseDevice
I2CCloseDevice — Closes an open network connection to an AnaGate I2C device.
Syntax
#include <AnaGateDllI2C.h>
int I2CCloseDevice(int hHandle);
Parameter
hHandle Valid access handle.
Return value
Returns Null if successful, or an error value otherwise (Appendix A, Return Codes).
Description
Closes an open network connection to an AnaGate I2C device. The hHandle parameter is a return value
of a succesfull call to the function I2COpenDevice.
Important
It is recommended to close the connection, because all internally allocated system resources
are freed again and the connected AnaGate device is signalled that the active connection is
not longer in use and can be used again for new connect requests.
See also
I2COpenDevice