tchmi_base64encode
[ Function ]
function tchmi_base64encode(input: string): string | null;
Generates a base64 string.
Please note that strings are encoded in JavaScript UTF16.
Parameter
Name | Type | Description |
---|---|---|
input | String to convert |
Return value
Type | Description |
---|---|
String converted to Base64 format. See note below. |
Available from version 1.8 |
Sample - JavaScript
TcHmi.Log.debug(tchmi_base64encode('TwinCAT HMI')); // 'VHdpbkNBVCBITUk='