RuntimeCredentialsHandler
(FB)
FUNCTION_BLOCK RuntimeCredentialsHandler
A utility function block for the work with credentials, storing them at the correct location in the INI-String and resetting them both in the caller and after usage in the INI-String
- InOut:
Scope
Name
Type
Comment
Input
pIniString
POINTER TO BYTE
The ini-string that should be modified at need
xAssignCredentials
BOOL
Whether the fb should become active or not
xResetPassedCredentials
BOOL
could become an option in the future whether credentials should be asked on every connection; for now we use the same behaviour than dataserver (keeping credentials)
Inout
userName
STRING
The username to write to ini; will be resetted after writing to ini (thus VAR_IN_OUT)
password
STRING
The username to write to ini; will be resetted after writing to ini (thus VAR_IN_OUT)
Output
error
SysTypes.RTS_IEC_RESULT