Changelog 3 1 17 » History » Revision 2
Revision 1 (Torbjorn Carlqvist Admin, 09/14/2023 11:13 AM) → Revision 2/12 (Torbjorn Carlqvist Admin, 09/14/2023 12:00 PM)
h1. Changelog 3.1.17
New features:
* *DTX build for Windows with included JVM!*
Now for every release there is a build made specifically for windows that bundles also the JVM so no java needs to be downloaded on the peer computer/server.
The file for this release for example is called *dtx-3.1.17-exe.zip*.
There is no installation needed, just unpack the archive on the peer computer and navigate to the dtx folder and double click dtx.exe.
DTX will start from scratch with a random bacnet id, names, keys etc to work directly with any other bacnet devices on the network.
Of course this is not just for demo. If this should be a permanent instance on the machine just install it as a service and the continue using it as so.
* *Get a remote bacnet fileObject content in javascript:*
<pre><code class="javascript">
/**
* Gets the file content of a remote bacnet file object.
* Can download to file system or return as string content directly to JS.
* WARNING: large files can cause out of memory in web browser if option to
* return as string content is used!
*
* @param deviceId Remote Device Id
* @param objectInstance The instance of the file object
* @param dowloadOnly If the content should be stored as a file or returned as string content.
* @param saveToPath An absolute path to file system OR leave null and the file will be stored in project folder.
* @param saveToName If set this will be the name of the saved file, if left null a generic name will be chosen.
* @return The file content as string OR blank if the flag downloadOnly is set.
*/
public String getFileObject(Integer deviceId,Integer objectInstance, java.lang.Boolean dowloadOnly, String saveToPath, String saveToName
Usage:
//Download the content of file object 13 on device 83367 and save as a file in project folder with name "sample.txt"
Controller.getFileObject(83367,14,true,null,"sample.txt");
//Download the content of file object 13 on device 83367 and save as a file in c:/temp folder with name "sample.txt"
Controller.getFileObject(83367,14,true,"c:/temp","sample.txt");
//Show the content of file object 11 on device 83367, no file is stored.
print(Controller.getFileObject(83367,11,false,null,null));
</code></pre>