You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
379 B

  1. <?php
  2. namespace App\Service;
  3. interface MqttServiceInterface
  4. {
  5. /**
  6. * 发布给商户
  7. * @return mixed
  8. */
  9. public function speakToStore($orderId, $isMain = true);
  10. /**
  11. * MQTT发布消息
  12. * @param $message
  13. * @param $topic
  14. * @param $toClientId
  15. * @return mixed
  16. */
  17. public function pubToMqtt($message, $topic, $toClientId);
  18. }