Disables security mode for an Ethernet device.
- Parameters
-
[in] | connection | Valid IP Address of the device. |
[in] | securityMode | Type of encryption. |
[in] | securityKey | Hexadecimal encryption key in ASCII format. |
- Return values
-
-1 | Parameter 'connection' is null. |
-2 | Invalid connection string. |
-3 | Ethernet: Could not resolve host address. |
-4 | Ethernet: Host refused or unavailable. |
-5 | Ethernet: Could not acquire free socket. |
-6 | Ethernet: Could not acquire a valid mutex. |
-7 | Ethernet: Unknown error establishing connection. |
-8 | Ethernet: Invalid key. |
-9 | Ethernet: Unable to load cbx_enc_2_1.dll. |
-10 | Ethernet: Unknown error when sending command to device. |
For securityMode values, see Security Type.
The securityKey parameter must include a C String containing two hexadecimal characters per byte of encryption. For example, an AES 256 key would be represented as 64 hexadecimal characters: "0102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20".