phpMQTT icon indicating copy to clipboard operation
phpMQTT copied to clipboard

php7.4.3 The error in the version below is reported

Open ysw121512 opened this issue 4 years ago • 1 comments


Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 241

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 241

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 247

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 248

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 367

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 368

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 416

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 451

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 451

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 585

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 641

Deprecated: Array and string offset access syntax with curly braces is deprecated in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 643

Warning: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: ��֪������������ in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 150

Warning: stream_socket_client(): unable to connect to tcp://http://192.168.1.166:1883 (php_network_getaddresses: getaddrinfo failed: ��֪������������ ) in D:\workspace\vendor\bluerhinos\phpmqtt\phpMQTT.php on line 150
Fail or time out

ysw121512 avatar Nov 17 '20 07:11 ysw121512

The IP address you used (tcp://http://192.168.1.166:1883) is obviously no good. The "HTTP://" has no business being there! The curly brace indexing is deprecated but is still usable. I assume that will be changed when the code is updated.

anhlephuoc avatar Nov 17 '20 11:11 anhlephuoc