Error initializing driver MQTT 1.8: Error loading api

Hello,

I am trying to test the MQTT driver with the Indusoft Web studio. However, whenever I start up Indusoft I get an error saying "Error initializing driver MQTT 1.8: Error loading api." I installed the MQTT 1.8 driver and I am able to see it in Indusoft and set it up but I still get an error. Any hep would be appreciated. I attached a screenshot of the error.

Thanks

Zach Baumgartner

  • What version of InduSoft are you using?

    If you are using Authentication, Certificates or Secure Connections, you need to use 8.0SP2 or greater.

    I have not used this driver but noticed the following from the manual and my default InduSoft install (8.1SP5) (MQTT1.8).

    1. Discrepancy in .DLL file name for v1.4 or greater. Manual lists the file names paho-mqtt3as.dll and pahomqtt3as.dll (without hyphen). Not sure what is correct. My install includes the file with hyphen. Probably a typo in the driver manual.
    2. The files ssleay32.dll and libeay32.dll are not installed in my BIN folder as the manual states that they should be. I do have libcrypto-1_1.dll and libssl-1_1.dll in my BIN folder. These seem to be the files that mirror the IoTView files and all seem to be related to OpenSSL.


    Driver Manual excerpt...


    Additional specifications

    This driver also requires that the library file paho-mqtt3a.dll (used by MQTT v1.3 or lower) or the pahomqtt3as.dll (used by MQTT v1.4 or higher) be properly installed in the Drv sub-folder of the Studio program folder, at Drv\API\. If you downloaded and installed this driver separately, some time after you installed Studio, the library file should be automatically installed in the correct location. If it is not, or if it is not correctly named, this driver will return error 1 (Error loading api).

    The MQTT driver v1.4 and higher also requires the library files ssleay32.dll and libeay32.dll and they should be properly installed in the Bin sub-folder of the Studio program folder. If you downloaded and installed this driver v1.4 or higher separately, sometime after you installed Studio, the library file should be automatically installed in the correct location. The driver used on IoTView depends on the files libcrypto.so.1.0.0 and libssl.so.1.0.0 found in the Bin subfolder of the linux distribution subfolder under Redist/IoTView.

    MQTT Driver supports authentication and secure connections, to use these features the user must first use the Web Studio to configure the authentication information or SSL/TLS certificates for more information please refer to the sections "Driver communication using Authentication", "Driver communication using Certificates and Secure Connections (SSL/TLS)", and "Driver communication using Certificates and Secure Connections (SSL/TLS) - Self Signed Certificates".

    To use the MQTT driver version 1.4 or higher on Windows Embedded platform using Remote Management, the latest version of the Microsoft Visual C++ 2008 Redistributable has to be installed separately on the device.