项目作者: xiaoping6688

项目描述 :
Eclipse Paho MQTT Client 封装,实现重连、队列和日志功能等
高级语言: JavaScript
项目地址: git://github.com/xiaoping6688/mqtt-socket.git
创建时间: 2017-05-27T10:01:13Z
项目社区:https://github.com/xiaoping6688/mqtt-socket

开源协议:

下载


mqtt-socket

Eclipse Paho MQTT Client 封装 (javascript),实现重连、队列和日志功能,支持node module引入;

该例服务端使用阿里云MQTT;另外推荐使用MQTT.js:The MQTT client for Node.js and the browser

Usage

  1. // for client
  2. mqtt.connect(MQTT_CONIFG, onConnected, onReceived);
  3. mqtt.sendToAll(110, {});
  4. mqtt.sendToUser(YourDevID, 110, {});
  5. // for server
  6. 使用阿里云的[MQTT 物联套件](https://help.aliyun.com/document_detail/42419.html)
  7. //=> @see test.html