I want to use this library but I can't connect to Azure IoT Hub. I tried to connect to mosquitto in localhost without TLS and it works fine, but when I try to connect to Azure using TLS it fails.
PHP Notice: Uninitialized string offset: 0 in /Users/rsre/Downloads/phpMQTT-master/phpMQTT.php on line 156
Notice: Uninitialized string offset: 0 in /Users/rsre/Downloads/phpMQTT-master/phpMQTT.php on line 156
PHP Notice: Uninitialized string offset: 0 in /Users/rsre/Downloads/phpMQTT-master/phpMQTT.php on line 160
Notice: Uninitialized string offset: 0 in /Users/rsre/Downloads/phpMQTT-master/phpMQTT.php on line 160
PHP Notice: Uninitialized string offset: 3 in /Users/rsre/Downloads/phpMQTT-master/phpMQTT.php on line 160
Notice: Uninitialized string offset: 3 in /Users/rsre/Downloads/phpMQTT-master/phpMQTT.php on line 160
Connection failed! (Error: 0x00 0x00)
Hello,
I want to use this library but I can't connect to Azure IoT Hub. I tried to connect to mosquitto in localhost without TLS and it works fine, but when I try to connect to Azure using TLS it fails.
This is my code:
Command line shows: