Added tdClose-method, to be called after use of static methods.

This commit is contained in:
Stefan Persson 2010-11-04 16:07:39 +00:00
parent e254bf98ca
commit e72a3b285a

View file

@ -232,6 +232,16 @@ namespace TelldusWrapper
return UnmanagedImport.tdBell(deviceId);
}
/// <summary>
/// Close the library and clean up the cache it uses.
/// This should be called when the library is not supposed to be used anymore.
/// Do not use when this has been instantiated, will be closed in destructor then, only on static methods.
/// </summary>
public static void tdClose()
{
UnmanagedImport.tdClose();
}
/// <summary>
/// Dims a device.
/// Make sure the device supports this by calling tdMethods() before any calls to this function.