Providing files for downloading

Hey everybody,

I am currently implementing a log file for warning/error messages and for measurement data, similar as described here: /ctrlx-plc-ctxo5cm7/post/data-logging-with-ctrlx-FEcg3eFjz9b2B3T

Does anybody know, how I would be able to get the data out of the core? The ideal way would be, that the files could be provided via download over Smart HMI. Do you see any chance of accomplishing this?

Many thanks in advance and greetings!

Best reply by LunatiX

I've made a example within WebIQ. Please see the attachment.

Here some explanations:

With a REST client, t.e. Postman, you could test the download command (GET...file):

t.e.: https://192.168.1.1/solutions/webdav/appdata/plc/run/linux-gcc-aarch64/data/Daten.RecipeDataSave_1.csv

With WinSCP (WebDAV protocol) my directory looks like this:

And within WebIQ you could have a look to this button or better to the UI-actions "APIcall_DownloadFile":

 

 

 

WebIQ_Demo-RestAPI_20221024.zip
9.88MB
View original
2 replies