GithubHelp home page GithubHelp logo

yangboz / as3mqtt Goto Github PK

View Code? Open in Web Editor NEW
22.0 8.0 19.0 3.88 MB

:loudspeaker: Pure Action Script 3 that implements the MQTT (Message Queue Telemetry Transport) protocol, a lightweight protocol for publish/subscribe messaging.

Home Page: http://smartkit.info

License: MIT License

ActionScript 12.26% JavaScript 7.22% CSS 1.82% HTML 78.71%
protocol mqtt actionscript mq-telemetry-transport

as3mqtt's Introduction

as3MQTT

Pure/Native Action Script 3 that implements the MQTT (Message Queue Telemetry Transport) protocol, a lightweight protocol for publish/subscribe messaging.

  • Gist

see: https://github.com/yangboz/as3MQTT/blob/master/MQTTClient_AS3/src/MQTTClient_AS3.as

  • Maven repository

http://repository-godpaper.forge.cloudbees.com/snapshot/com/godpaper/as3/as3MQTT/

  • ASDOC

http://htmlpreview.github.io/?https://github.com/yangboz/as3MQTT/blob/master/MQTTClient_AS3/target/asdoc/index.html

Overview

MQ Telemetry Transport (MQTT) is a lightweight broker-based publish/subscribe messaging protocol designed to be open, simple, lightweight and easy to implement. These characteristics make it ideal for use in constrained environments, for example, but not limited to:

#1.Where the network is expensive, has low bandwidth or is unreliable
#2.When run on an embedded device with limited processor or memory resources

Features of the protocol include:

#1.The publish/subscribe message pattern to provide one-to-many message distribution and decoupling of applications
#2.A messaging transport that is agnostic to the content of the payload
#3.The use of TCP/IP to provide basic network connectivity
#4.Three qualities of service for message delivery:
    Qos(0):"At most once", where messages are delivered according to the best efforts of the underlying TCP/IP network. Message loss or duplication can occur. This level could be used, for example, with ambient sensor data where it does not matter if an individual reading is lost as the next one will be published soon after.
    Qos(1):"At least once", where messages are assured to arrive but duplicates may occur.
    Qos(2):"Exactly once", where message are assured to arrive exactly once. This level could be used, for example, with billing systems where duplicate or lost messages could lead to incorrect charges being applied.
#5.A small transport overhead (the fixed-length header is just 2 bytes), and protocol exchanges minimised to reduce network traffic
#6.A mechanism to notify interested parties to an abnormal disconnection of a client using the Last Will and Testament feature

MQ Telemetry Transport (MQTT) V3.1 Protocol Specification

http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html

http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/MQTT_V3.1_Protocol_Specific.pdf

White Papers

http://www.redbooks.ibm.com/redbooks/pdfs/sg248054.pdf

http://www-sop.inria.fr/maestro/MASTER-RSD/html/2004-05/perez.pdf

Tips

Mosquitto console at Linux: tcpdump -nl -A port 1883

Wiki

https://github.com/yangboz/as3MQTT/wiki

Other client libraries

https://github.com/mqtt/mqtt.github.io/wiki/libraries

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Beerpay Beerpay

as3mqtt's People

Contributors

roy2an avatar yangboz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

as3mqtt's Issues

where can i find topic info when i receive a message

where can i find topic info when i receive a message

in other mqtt client lib , i got packet when i receive message, and hav packet.topic and packet.message

in as3MQTT , i can not find the topic of receive message in message got event function...

整个包大小超过 127字节, MQTT 服务器会报错

我试了 两种 MQTT服务器 都会报错, 超过127位的话 长度计算貌似有错,但是我查了下 好像可变长度这块的代码没有问题, 服务器上接受包的长度的问题是打印出来 topic的 长度 变得巨大, 貌似是 低位的值变道了高位.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.