Git Product home page Git Product logo

arduinowebsocketmqttclient's Introduction

ArduinoWebsocketMQTTClient

This repository contains all the necessary libraries for connecting to the MQTT broker using PubSubClient via Websocket.

This repository unifies the code from several libraries and their forks on GitHub, and thanks to this you can quickly establish a connection to the MQTT broker via Websocket without having to search and modify all the necessary libraries.

Dependencies

How to setup

This library contains everything needed to establish a connection to the MQTT broker using a web socket. All you need to do is the following:

  • Download the code from this repository
  • Copy the modified WebSocketStreamClient library from the corresponding folder to the Your PC/Documents/Arduino/libraries folder
  • Copy the modified ArduinoHttpClient library from the corresponding folder to the Your PC/Documents/Arduino/libraries folder
  • From the library manager in the Arduino IDE (Sketch menu > Include Library > Manage Libraries), install the WebSockets library by Markus Sattler, or download the code from this repository and copy it to the Arduino libraries folder on your computer (the procedure is the same as in previous 2 steps)
  • Upload the sample code from the examples folder to the board

Usage

You can see how to set up a connection in the example file here.

Credit

clysss - Made edits to the WebSocketStreamClient library - in this repository

emsi - Added protocol support to WebSocketClient - in this repository

emsi - Set protocol to mqtt (required by mosquitto) - in this repository

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.