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
pIniStringPOINTER TO BYTE
The ini-string that should be modified at need
xAssignCredentialsBOOLWhether the fb should become active or not
xResetPassedCredentialsBOOLcould 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
userNameSTRINGThe username to write to ini; will be resetted after writing to ini (thus VAR_IN_OUT)
passwordSTRINGThe username to write to ini; will be resetted after writing to ini (thus VAR_IN_OUT)
Output
errorSysTypes.RTS_IEC_RESULT
Methods:
ResetIniContent
Structure: