OnPutFile
notifies the HMI that some file has been put into a shared or system folder that can be used by the HMI.
isSystemFile
is set to true, use the appropriate uploaded file according to its workflow (IVSU, SystemRequest, RPC's). See diagrams listed below. Whenever HMI gets RPC with Image
which has .isTemplate
set to true, the HMI has to:
load the proper image pattern
and whenever the UI changes, the HMI has to recreate images currently visible on the screen.
The list of RPCs and data structures that OnPutFile
affects are:
Name | Type | Mandatory | Additional |
---|---|---|---|
offset | Integer | false | minvalue: 0 maxvalue: 100000000000 |
length | Integer | false | minvalue: 0 maxvalue: 100000000000 |
fileSize | Integer | false | minvalue: 0 maxvalue: 100000000000 |
syncFileName | String | true | maxlength: 255 |
fileType | Common.FileType | true | |
persistentFile | Boolean | false | defvalue: false |
isSystemFile | Boolean | false | defvalue: false |
appID | Integer | false |
In the context of PutFile
and OnPutFile
, each of these diagrams use the term FileName
to refer to the value of the syncFileName
parameter
{ "jsonrpc" : "2.0", "method" : "BasicCommunication.OnPutFile", "params" : { "syncFileName":"/fs/sharedFolder/app1_device1/icon.jpg", "fileType":"GRAPHIC_JPEG" } }