We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think there is a bug at line 1150 of MqttClient class:
client/src/MqttClient.php
Lines 1141 to 1171 in 0847abe
This will result in DataTransferException event with messages over 100 KB (MQTT has a maximum allowed message size of 256 MB).
DataTransferException
I solved the issue adding the method:
protected function writeChunks($fp, $string) { $fwrite = 0; for ($written = 0; $written < strlen($string); $written += $fwrite) { $fwrite = @fwrite($fp, substr($string, $written)); if ($fwrite === false) { return $written; } } return $written; }
and changing line 1150 to:
$result = $this->writeChunks($this->socket, $data);
With this update your code is working fine.
The text was updated successfully, but these errors were encountered:
A detailed analysis and a possible solution regarding this issue can be found in #133.
Sorry, something went wrong.
Tanks for your fast reply @Namoshek ... #133 closes this issue.
No branches or pull requests
I think there is a bug at line 1150 of MqttClient class:
client/src/MqttClient.php
Lines 1141 to 1171 in 0847abe
This will result in
DataTransferException
event with messages over 100 KB (MQTT has a maximum allowed message size of 256 MB).I solved the issue adding the method:
and changing line 1150 to:
With this update your code is working fine.
The text was updated successfully, but these errors were encountered: