You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onConnect(function() use ($c) {
$c->publish('mgdm/test', 'Hello', 2);
});
$c->connect('test.mosquitto.org');
for ($i = 0; $i < 100; $i++) {
// Loop around to permit the library to do its work
$c->loop(1);
}
echo "Finished\n";
`
The text was updated successfully, but these errors were encountered:
sh$ php mqtt.php
[Thu Sep 22 14:15:03 2016] Script: 'mqtt.php'
/usr/local/src/php-7.0.10/Zend/zend_closures.c(367) : Freeing 0x7FC08DC78000 (296 bytes), script=mqtt.php
=== Total 1 memory leaks detected ===
`
onConnect(function() use ($c) { $c->publish('mgdm/test', 'Hello', 2); }); $c->connect('test.mosquitto.org'); for ($i = 0; $i < 100; $i++) { // Loop around to permit the library to do its work $c->loop(1); } echo "Finished\n"; `The text was updated successfully, but these errors were encountered: