Git Product home page Git Product logo

iotupdates's Introduction

Goal

The goal of this project was to create an OTA mechanism which shows a proof of concept on how this could operate in the real world.

Setup

Broker

For this demo an Ubuntu machine was used. Below are the steps to install the Mosquitto MQTT broker and the necessary packages.

sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install mosquitto mosquitto_clients
sudo apt clean

To start the service: sudo service mosquitto start

To customize your Mosquitto broker please edit the file in /etc/mosquitto/mosquitto.conf

Customization is necessary to set ports for each of tcp and websockets transport methodology.

Client

To setup the client all you need is Python. It should be vended by default with the Ubuntu distribution but in case it isn't, follow the steps below:

sudo apt-get update
sudo apt-get install python3

Once you have Python up and running you will need the paho-mqtt library. This can be installed using pip

python3 -m pip install paho-mqtt

Once all of that is done, please pull down the files from this GitHub link:

Running the Programs

Clone this repo on your broker and client devices using:

git clone https://github.com/amalik18/IoTUpdates.git

On the Broker instance, run the subscribe.py file

python3 subscribe.py

On the Client side, run the publisher.py file

python3 publisher.py

iotupdates's People

Watchers

 avatar

iotupdates's Issues

๐Ÿงš๐Ÿค– Pixeebot Activity Dashboard

DashList

๐Ÿ‘‹ This dashboard summarizes my activity on the repository, including available improvement opportunities.

Recommendations

Last analysis: Jun 15 | Next scheduled analysis: Jun 22

Open

Available

โœ… Nothing yet, but I'm continuing to monitor your PRs.

Metrics

What would you like to see here? Let us know!

Resources

๐Ÿ“š Quick links
Pixee Docs | Codemodder by Pixee

๐Ÿงฐ Tools I work with
Sonar, CodeQL, Semgrep

๐Ÿš€ Pixee CLI
The power of my codemods in your local development environment. Learn more

๐Ÿ’ฌ Reach out
Feedback | Support


โค๏ธ Follow, share, and engage with Pixee: GitHub | LinkedIn | Slack

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.