Hello all,
I spent couple hours trying to subscribe to MQTT broker with TLS. And I could not do that.
I got paho.mqtt.c from git repo and build it with make. After that I wrote simple application. Example seems simple: init MQTTClient_SSLOptions structure, specify certificated and key and connect to host. But connection fails.
I try to run test3 from paho.mqtt.c/build/output/test directory, and I see asserts and messages like that "ssl://
m2m.eclipse.org is not a valid IP address
Assertion failed, file src/../test/test3.c, line 666, description: Good rc from connect".
Can anybody who worked with paho.mqtt.c and TLS tell me if paho.mqtt.c works with TLS? If yes what should I do to start using it?