Skip to content

Eclipse Paho MQTT Client 封装,实现重连、队列和日志功能等

Notifications You must be signed in to change notification settings

xiaoping6688/mqtt-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt-socket

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

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

Usage

// for client
mqtt.connect(MQTT_CONIFG, onConnected, onReceived);
mqtt.sendToAll(110, {});
mqtt.sendToUser(YourDevID, 110, {});

// for server
使用阿里云的[MQTT 物联套件](https://help.aliyun.com/document_detail/42419.html)

//=> @see test.html

About

Eclipse Paho MQTT Client 封装,实现重连、队列和日志功能等

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published