Added tdClose-method, to be called after use of static methods.
This commit is contained in:
parent
e254bf98ca
commit
e72a3b285a
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue