This are errors
**Notice: Uninitialized string offset: 0 in D:\MyBelongings\PHP7\htdocs\composer\mqtt\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 124
Notice: Uninitialized string offset: 0 in D:\MyBelongings\PHP7\htdocs\composer\mqtt\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 128
Notice: Uninitialized string offset: 3 in D:\MyBelongings\PHP7\htdocs\composer\mqtt\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 128
Exit**
Hi, I"ve been trying to connect to my aws iot thing
`require_once "../phpMQTT.php"; $server = "mythingid-ats.iot.us-east-2.amazonaws.com"; $port = 8883; $username = ""; $password = ""; $client_id = "client-iot-thing-" . time();
$mqtt = new phpMQTT($server, $port, $client_id); $mqtt->debug = true;
if(!$mqtt->connect(true, NULL)) { exit('Connection Failed'); } exit('Connection success');`
This are errors **Notice: Uninitialized string offset: 0 in D:\MyBelongings\PHP7\htdocs\composer\mqtt\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 124
Notice: Uninitialized string offset: 0 in D:\MyBelongings\PHP7\htdocs\composer\mqtt\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 128
Notice: Uninitialized string offset: 3 in D:\MyBelongings\PHP7\htdocs\composer\mqtt\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 128 Exit**
Fyi, i tried this solution but it didn't solve the problem and still it displays the error https://github.com/bluerhinos/phpMQTT/issues/48
Any help would be appreciable Thanks, Hussain