Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 387 Bytes

File metadata and controls

13 lines (10 loc) · 387 Bytes

PHP example for MQTT

Getting started

  • Clone the repo
  • Install Composer if you don't already have it installed
  • run php composer.phar install
  • set url to CloudMQTT export CLOUDMQTT_URL=mqtt://....
  • run php subscribe.php
  • Open another terminal window
  • set url to CloudMQTT export CLOUDMQTT_URL=mqtt://....
  • run php publish.php