You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Release 4.2.0
## New features
- Supporting now SFTP and FTPS
- Function 'putFile' to transfer files to FTP server
- Option to save data directly as JPG (without image processing)
- Providing information of data transfer success via 'OnNewStatusFileTransferSuccess' event (can be used in async mode as well)
## Improvements
- "sendData"- and "sendImage"-function return now transfer success (does not work with async mode)
## Bugfix
- Async feature did not work
<paramdesc="Name of file (optionally with full file path on device) to transfer. Not supported in async mode."multiplicity="?"name="file"type="string"/>
187
+
</event>
138
188
<functionname="pageCalled">
139
189
<desc>Function to register "OnResume" of the module UI (only as helper function).</desc>
140
190
<returndesc="Empty string (only needed to simplify binding)."multiplicity="1"name="empty"type="string"/>
@@ -190,6 +240,7 @@ It is possible to register to events of other apps to put the received data to t
190
240
<desc>Send image.</desc>
191
241
<paramalias="Image"desc="Image to send"multiplicity="1"name="img"type="object"/>
@@ -216,6 +267,7 @@ If TRUE it will send the content in its own thread, but other apps can further r
216
267
<desc>Send data to connected FTP server.</desc>
217
268
<paramdesc="Data to send."multiplicity="1"name="data"type="auto"/>
218
269
<paramdesc="Filename to store send data on FTP server."multiplicity="1"name="filename"type="string"/>
270
+
<returndesc="Success of data transfer. Not reliable if running async mode. In this case register to 'OnNewStatusFileTransferSuccess' event to track success."multiplicity="1"name="success"type="bool"/>
219
271
</function>
220
272
<functionname="setLoadOnReboot">
221
273
<desc>Configure if this module should load its saved parameters at app/device boot up.</desc>
@@ -288,6 +340,63 @@ If TRUE it will send the content in its own thread, but other apps can further r
288
340
<functionname="resetModule">
289
341
<desc>Function to reset main configuration of module.</desc>
290
342
</function>
343
+
<functionname="putFile">
344
+
<desc>Function to put a local file to the FTP server.</desc>
345
+
<paramdesc="Source path of the file to upload."multiplicity="1"name="localSource"type="string"/>
346
+
<paramdesc="Target name of the file to upload. Can be a relative or absolute path in FTP path notation."multiplicity="?"name="destination"type="string"/>
@@ -299,10 +408,10 @@ If TRUE it will send the content in its own thread, but other apps can further r
299
408
<serves>
300
409
<functionname="create">
301
410
<desc>Internally used CSK_FlowConfig create function.</desc>
302
-
<paramdesc="Data type of data1 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file."multiplicity="?"name="dataType1"ref="CSK_FTPClient.DataType"type="enum"/>
303
-
<paramdesc="Data type of data2 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file."multiplicity="?"name="dataType2"ref="CSK_FTPClient.DataType"type="enum"/>
304
-
<paramdesc="Data type of data3 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file."multiplicity="?"name="dataType3"ref="CSK_FTPClient.DataType"type="enum"/>
305
-
<paramdesc="Data type of data4 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file."multiplicity="?"name="dataType4"ref="CSK_FTPClient.DataType"type="enum"/>
411
+
<paramdesc="Data type of data1 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file. 'RAW_JPG' = Store binary data as JPG image file."multiplicity="?"name="dataType1"ref="CSK_FTPClient.DataType"type="enum"/>
412
+
<paramdesc="Data type of data2 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file. 'RAW_JPG' = Store binary data as JPG image file."multiplicity="?"name="dataType2"ref="CSK_FTPClient.DataType"type="enum"/>
413
+
<paramdesc="Data type of data3 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file. 'RAW_JPG' = Store binary data as JPG image file."multiplicity="?"name="dataType3"ref="CSK_FTPClient.DataType"type="enum"/>
414
+
<paramdesc="Data type of data4 ('DATA' per default). 'DATA' = Store STRING data as .dat file 'JPG' = Store data as JPG image file. 'RAW_JPG' = Store binary data as JPG image file."multiplicity="?"name="dataType4"ref="CSK_FTPClient.DataType"type="enum"/>
306
415
<paramdesc="Status if filename should be generated by date/time or is provided via source of data1 (TRUE per default)."multiplicity="?"name="autoName1"type="bool"/>
307
416
<paramdesc="Status if filename should be generated by date/time or is provided via source of data2 (TRUE per default)."multiplicity="?"name="autoName2"type="bool"/>
308
417
<paramdesc="Status if filename should be generated by date/time or is provided via source of data3 (TRUE per default)."multiplicity="?"name="autoName3"type="bool"/>
@@ -322,7 +431,7 @@ If TRUE it will send the content in its own thread, but other apps can further r
0 commit comments