Giter VIP home page Giter VIP logo

mqtt-essentials-a-lightweight-iot-protocol's Introduction

MQTT Essentials - A Lightweight IoT Protocol

This is the code repository for MQTT Essentials - A Lightweight IoT Protocol, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

This step-by-step guide will help you gain a deep understanding of the lightweight MQTT protocol. We’ll begin with the specific vocabulary of MQTT and its working modes, followed by installing a Mosquitto MQTT broker. Then, you will use best practices to secure the MQTT Mosquitto broker to ensure that only authorized clients are able to publish and receive messages. Once you have secured the broker with the appropriate configuration, you will develop a solution that controls a drone with Python.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The chapter 1 and 2 does not contain code.

The code will look like the following:

    # Replace localhost with the IP for the Mosquitto 
    # or other MQTT server 
    mqtt_server_host = "localhost" 
    mqtt_server_port = 8883 
    mqtt_keepalive = 60

You will need any computer or device capable of running Python 3.x or greater, Chrome 56.x or greater, JDK 8 or greater, and Node.js 6.7.x or greater.

In order to work with Mosquitto 1.4.11 or greater, you will need a computer with any of the operating systems supported by this version of Mosquitto. The list is available at https://mosquitto.org/download/.

In order to work with Xcode 8.x, you will need a Mac computer capable of running OS X 10.11.5 or later, with 8 GB RAM.

Related Products

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781787287815

mqtt-essentials-a-lightweight-iot-protocol's People

Contributors

jijom avatar packt-itservice avatar packtpavanr avatar packtutkarshr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

mqtt-essentials-a-lightweight-iot-protocol's Issues

MQTT.fx java.io.IOException: extra data given to DerValue constructor

Me trying to connect to Mosquitto through MQTT.fx with Selft signed sertificates on a local machine. But getting error.
ERROR --- BrokerConnectService : Unable to initialize, java.io.IOException: extra data given to DerValue constructor

At the same time connecting through mosquitto_sub or mosquitto_pub work as expected. Can't figure out what is wrong.

The example03_1 python code does not work

I just copied the python code and ran it. Nothing happened on my console. The problem was there was a missing parameter in on_connect method. There should be four parameters instead of three. It worked after I added flags like this - def on_connect(client, userdata, flags, rc)
btw, keyfile also needs to be added to the code

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.