Git Product home page Git Product logo

learning-iot-mqtt's Introduction

Learning-IoT-MQTT

Source code for the MQTT chapter of the book Learning Internet of Things.

This chapter covers the basics of the MQTT protocol. It also shows how to use MQTT in the actuator, sensor and controller projects, each running on separate Raspberry Pis or Raspberry Pi 2s.

The source code contains the following projects:

Project Description
Actuator The actuator project. Controlls a sequence of digital outputs as well as an alarm output.
Camera The camera project. Publishes an infrared camera and some control parameters.
Controller The controller project. Controls the actuator based on input received from the sensor.
Sensor The sensor project. Measures and logs temperature, light and movement.
Clayster.Library.IoT Library handling basic interoperability for the Internet of Things.
Clayster.Library.RaspberryPi Library containing classes handling different types of devices connected to the Raspberry Pi or Raspberry Pi 2 interfaced through GPIO.
Clayster Contains libraries that facilitate data persistence, event logging, communication, localization and scripting.

Projects are developed in C# and compiled using Xamarin. They are executed on Raspberry Pi or Raspberry Pi 2 using MONO. By modifying the classes in Clayster.Library.RaspberryPi, the code can be made to run on other hardware platforms as well. This library is the only library that contains code specifically written for the Raspberry Pi and Raspberry Pi 2.

Chapters of the book:

Chapter Title Source Code
Preface N/A
1 Preparing our IoT projects N/A
2 The HTTP Protocol Learning-IoT-HTTP
3 The UPnP Protocol Learning-IoT-UPnP
4 The CoAP Protocol Learning-IoT-CoAP
5 The MQTT Protocol Learning-IoT-MQTT
6 The XMPP Protocol Learning-IoT-XMPP
7 Using an IoT Service Platform Learning-IoT-IoTPlatform
8 Creating protocol gateways Learning-IoT-Gateway
9 Security and Interoperability N/A

Ulf Bonde has documented his progress with the book in a series of interesting and well-done video-tutorials on http://learninginternetofthings.com/. A post that might be of interest to people using code in this project include:

learning-iot-mqtt's People

Watchers

 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.