Notify.php 380 B

1234567891011121314
  1. <?php
  2. namespace Biz\Message;
  3. require 'Lib/phpMQTT.php';
  4. class Notify{
  5. public function publish($channel,$content)
  6. {
  7. // $mqtt = new \phpMQTT(MSG_URL, 1883, "system"); //Change client name to something unique
  8. // // print_r($channel.'----'.$con)
  9. // if ($mqtt->connect()) {
  10. // $res = $mqtt->publish($channel,$content,1);
  11. // $mqtt->close();
  12. // }
  13. }
  14. }