Project

General

Profile

Changelog 3 1 17 » History » Version 12

Torbjorn Carlqvist Admin, 09/14/2023 12:24 PM

1 1 Torbjorn Carlqvist Admin
h1. Changelog 3.1.17
2 2 Torbjorn Carlqvist Admin
3
New features:
4
5
* *DTX build for Windows with included JVM!*
6
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.
7
The file for this release for example is called *dtx-3.1.17-exe.zip*.
8
There is no installation needed, just unpack the archive on the peer computer and navigate to the dtx folder and double click dtx.exe.
9
DTX will start from scratch with a random bacnet id, names, keys etc to work directly with any other bacnet devices on the network.
10
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.
11 12 Torbjorn Carlqvist Admin
The size of the file is around 200Mbytes and is downloadable from the "Files" section.
12 3 Torbjorn Carlqvist Admin
13 2 Torbjorn Carlqvist Admin
14
* *Get a remote bacnet fileObject content in javascript:*
15
16
<pre><code class="javascript">
17
     /**
18
     * Gets the file content of a remote bacnet file object.
19
     * Can download to file system or return as string content directly to JS.
20
     * WARNING: large files can cause out of memory in web browser if option to 
21
     * return as string content is used!
22
     * 
23
     * @param deviceId Remote Device Id
24
     * @param objectInstance The instance of the file object
25
     * @param dowloadOnly If the content should be stored as a file or returned as string content.
26
     * @param saveToPath An absolute path to file system OR leave null and the file will be stored in project folder.
27
     * @param saveToName If set this will be the name of the saved file, if left null a generic name will be chosen.
28
     * @return The file content as string OR blank if the flag downloadOnly is set.
29
     */
30
31
public String getFileObject(Integer deviceId,Integer objectInstance, java.lang.Boolean dowloadOnly, String saveToPath, String saveToName
32
33
34
Usage:
35
36
//Download the content of file object 13 on device 83367 and save as a file in project folder with name "sample.txt"
37
Controller.getFileObject(83367,14,true,null,"sample.txt"); 
38
39
//Download the content of file object 13 on device 83367 and save as a file in c:/temp folder with name "sample.txt"
40
Controller.getFileObject(83367,14,true,"c:/temp","sample.txt"); 
41
42
//Show the content of file object 11 on device 83367, no file is stored. 
43
print(Controller.getFileObject(83367,11,false,null,null));
44
45
</code></pre>