Project

General

Profile

Changelog 3 1 17 » History » Version 6

Torbjorn Carlqvist Admin, 09/14/2023 12:14 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 6 Torbjorn Carlqvist Admin
The size of the file is around 200Mbytes and is uploaded manually here: [["DTX":/attachments/download/29]]
12 3 Torbjorn Carlqvist Admin
13
14 2 Torbjorn Carlqvist Admin
15
* *Get a remote bacnet fileObject content in javascript:*
16
17
<pre><code class="javascript">
18
     /**
19
     * Gets the file content of a remote bacnet file object.
20
     * Can download to file system or return as string content directly to JS.
21
     * WARNING: large files can cause out of memory in web browser if option to 
22
     * return as string content is used!
23
     * 
24
     * @param deviceId Remote Device Id
25
     * @param objectInstance The instance of the file object
26
     * @param dowloadOnly If the content should be stored as a file or returned as string content.
27
     * @param saveToPath An absolute path to file system OR leave null and the file will be stored in project folder.
28
     * @param saveToName If set this will be the name of the saved file, if left null a generic name will be chosen.
29
     * @return The file content as string OR blank if the flag downloadOnly is set.
30
     */
31
32
public String getFileObject(Integer deviceId,Integer objectInstance, java.lang.Boolean dowloadOnly, String saveToPath, String saveToName
33
34
35
Usage:
36
37
//Download the content of file object 13 on device 83367 and save as a file in project folder with name "sample.txt"
38
Controller.getFileObject(83367,14,true,null,"sample.txt"); 
39
40
//Download the content of file object 13 on device 83367 and save as a file in c:/temp folder with name "sample.txt"
41
Controller.getFileObject(83367,14,true,"c:/temp","sample.txt"); 
42
43
//Show the content of file object 11 on device 83367, no file is stored. 
44
print(Controller.getFileObject(83367,11,false,null,null));
45
46
</code></pre>