Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ESP8266 Home Automation Projects

You're reading from   ESP8266 Home Automation Projects Leverage the power of this tiny WiFi chip to build exciting smart home projects

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781787282629
Length 196 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Constantin Tambrea Constantin Tambrea
Author Profile Icon Constantin Tambrea
Constantin Tambrea
Catalin Batrinu Catalin Batrinu
Author Profile Icon Catalin Batrinu
Catalin Batrinu
Arrow right icon
View More author details
Toc

Introducing Mosquitto broker


Eclipse MosquittoTM is an open source MQTT broker that implements the MQTT v3.1 and MQTT v.3.1.1 standards and provides a lightweight method to transport messages, allowing publish and subscription for low power sensors, mobile devices, embedded computers, and micro controllers.

You can install Mosquitto on a Raspberry Pi or on AWS instance or on a VirtualBox Linux instance directly from your Linux repository distribution; or you can get the source code and compile it yourself if you want support from websockets.

Installing from your Linux distribution repository:

  1. First upgrade to the latest version:
    sudo apt update && sudo apt upgrade
  1. Then install mosquito:
sudo apt install mosquitto

You should see the following screen:

Installing Mosquitto

  1. After installing the Mosquitto broker verify that the broker is started and install mosquitto-clients as follows:

Verify if Mosquitto is running

  1. Type the following command:
sudo apt install mosquitto-clients

You will get the...

You have been reading a chapter from
ESP8266 Home Automation Projects
Published in: Nov 2017
Publisher: Packt
ISBN-13: 9781787282629
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime