Giter Site home page Giter Site logo

fangms / sim800_mqtt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elementzonline/sim800_mqtt

0.0 0.0 0.0 58 KB

Visit our blog/website for more information

Home Page: http://www.elementzonline.com

License: GNU General Public License v3.0

C++ 100.00%

sim800_mqtt's Introduction

SIM800_MQTT

#AutoConnect CallBack function

  • Use this function if you want to use autoconnect(and auto reconnect) facility
  • This function is called whenever TCP connection is established (or re-established).

#connect function

  • This function can be used to connect your client to MQTT broker.
  • Use only if you do not use Auto connect functionality.
  • Optionally you can use username, password, WILL topic and WILL Message.

#OnConnect CallBack function

  • This call back function is called when MQTT connection is established.
  • You can call subscription and publish functions inside it (according to your need).

Publish function

  • This function can be used to publish messages to different topics.
  • You can select QoS levels and RETAIN flag according to your need.

Subscribe function

  • This function can be used to subscribe messages from different topics.

OnMessage CallBack function

  • This callback function is called when messages are received from subscribed topics
  • Topic, TopicLength, Message, MessageLength are the arguments of OnMessage callback function.
  • Inside this, you can write your custom code.

#unsubscribe function

  • This function can be used to unsubscribe from a previously subscribed topic.

#disconnect function

  • This function can be used to disconnect your client from MQTT broker.

#available function

  • return true when connection with mqtt brocker is existing

Other Features :

  • You can specify your KeepAlive duration while initializing.
  • Ping requests are sent and received automatically.
  • QoS 0,1,2

To Do:

sim800_mqtt's People

Contributors

nithinkurian avatar elementzonline avatar marcosdepo avatar tanuj1234567 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.