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