Skip to content

Sample app which publish and subscribe to/from a CloudMQTT broker

Notifications You must be signed in to change notification settings

CloudMQTT/php-mqtt-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:https://....
  • run php subscribe.php
  • Open another terminal window
  • set url to CloudMQTT export CLOUDMQTT_URL=mqtt:https://....
  • run php publish.php

About

Sample app which publish and subscribe to/from a CloudMQTT broker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages