eclipse/paho.mqtt.c

Cannot connect to MQTT server with SSL on arm-linux

oppion opened this issue · 0 comments

Describe the bug
I cross-compiled paho.mqtt.c-1.3.13 (SET PAHO_WITH_SSL TRUE) , and test the libpaho-mqtt3cs.so, but cannot connect the server.

To Reproduce
call MQTTClient_createWithOptions and return success
load certificates
call MQTTClient_connect5

Expected behavior
function MQTTClient_connect5 returns success(MQTTREASONCODE_SUCCESS)

Actual result
MQTTClient_connect5 returns failure(MQTTCLIENT_FAILURE)
I test MQTTX tool on Windows, it can connect to mqtt server successfully, so the certificates and server is ok.

Log files
mqtt.log

** Environment (please complete the following information):**

  • OS: arm-linux
  • Version 5.4.226
    for details information, please see the attached log.