GithubHelp home page GithubHelp logo

skyformat99 / asyncmqtt-sn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ty4tw/asyncmqtt-sn

0.0 2.0 0.0 212 KB

MQTT-SN Async Client and Gateway for Arduino and linux.

Makefile 0.79% Arduino 0.92% C++ 94.22% C 4.08%

asyncmqtt-sn's Introduction

Async MQTT-SN over UDP and XBee

  • Async MQTT-SN Gateway running on linux
  • Async MQTT-SN Client running on linux and Arduino Uno, Arduino Ethernet.
  • Design concept of Async client is defferent from Sync one. No more MQTT-SN Message classes.
  • Program size of Async client over UDP for Arduino is 21KB. over XBee is 16KB.
  • Gateway is changed to support Async PUBACK and SUBACK, DISCONNECT responce.

For details, see Wiki

Supported functions

  • QoS Level 0, 1, 2
  • SEARCHGW, GWINFO
  • CONNECT, WILLTOPICREQ, WILLTOPIC, WILLMSGREQ, WILLMSG
  • PINGREQ, PINGRESP
  • CONNACK, REGISTER, REGACK, SUBACK, PUBACK, UNSUBACK
  • SUBSCRIBE, PUBLISH, UNSUBSCRIBE, DISCONNECT

Implemented control flows:
Application program executes PUBLISH() function,
Protocol flow as berrow is conducted automaticaly.

             Client              Gateway               Broker
  user coding   |                   |                    |      
                |                   |                    |    
   PUBLISH() -->| --- SERCHGW ----> |                    |  
                | <-- GWINFO  ----- |                    |  
                | --- CONNECT ----> |                    |  
                | <--WILLTOPICREQ-- |                    |  
                | --- WILLTOPIC --> |                    |  
                | <-- WILLMSGREQ -- |                    |  
                | --- WILLMSG ----> | ---- CONNECT ----> |(accepted)     
                | <-- CONNACK ----- | <--- CONNACK ----- |  
                | --- SUBSCRIBE --> | ---- SUBSCRIBE --> |     
 [set Callback] | <-- SUBACK ------ | <--- SUBACK ------ |   
                | --- REGISTER----> |                    |  
                | <-- REGACK  ----- |                    |  
                | --- PUBLISH ----> | ---- PUBLISH ----> |      
                | <-- PUBREC  ----- | <---- PUBREC ----- |    
                | --- PUBREL  ----> | ----- PUBREL ----> |    
                | <-- PUBCOMP ----- | <---- PUBCOMP----- |        
                |                   |                    |        
                //                  //                   //      
                | --- PINGREQ ----> | --- PINGREQ ---->  |         
                | <-- PINGRESP----- | <-- PINGRESP-----  |                    
                //                  //                   //    
                |                   |                    |    
                | <-- REGISTER ---- | <--- PUBLISH ----- |<-- PUBLISH  
                | --- REGACK  ----> |                    |  
[exec Callback] | <-- PUBLISH  ---- |                    |  
                | --- PUBACK   ---> | ---- PUBACK  ----> |--> PUBACK  
                |                   |                    |  
                //                  //                   //       
                |                   |                    |    
DISCONNECT() -->| ---DISCONNECT---> |                    |  
                | <--DISCONNECT---- |                    |           

License

This source code is available under the MIT license

asyncmqtt-sn's People

Contributors

ty4tw avatar

Watchers

 avatar  avatar

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.