ns=2;s=DEPRAG Smart/Network/EMailClient/SmtpServerSettings/Password
Password with which the application authenticates itself to the SMTP server.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bReadPassword : BOOL;
bWritePassword : BOOL;
hrPassword : HRESULT;
Password : STRING(80);
fbSmtpServerSettings : FB_SmtpServerSettings;
END_VAR
hrPassword := fbSmtpServerSettings.ReadPassword(
bExecute := bReadPassword,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
Output => Password);
IF hrPassword <> S_FALSE THEN
bReadPassword := FALSE;
END_IF
hrPassword := fbSmtpServerSettings.WritePassword(
bExecute := bWritePassword,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
PointerToNodeValue := ADR(Password),
SizeOfNodeValue := SIZEOF(Password));
IF hrPassword <> S_FALSE THEN
bWritePassword := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".