Git Product home page Git Product logo

esp-rtos-mqtt's Introduction

MQTT library for ESP8266

for Espressif RTOS SDK v1.4.0 based on Eclipse Paho

This project aims to provide an independent MQTT library which can be seamlessly added to any existing ESP8266 project. It is inspired from

Despite being excellent projects, it requires some effort to include MQTT in your own project from these.

Prerequisites

  1. Xtensa lx106 architecture toolchain to build the library. If you are using Espressif lubuntu VM, this is already installed and added to your path. If you wish to set up your own, use esp-open-sdk.
  2. ESP8266_RTOS_SDK v1.4.0 Github

Build

  1. Make sure Xtensa toolchain is added to PATH
  2. Export SDK_PATH with path to Espressif SDK installation.
$ export SDK_PATH=/path/to/espressif_rtos_sdk_dir
  1. Build the library and install it in the SDK.
$ make && make install

Usage

  1. In your project Makefile add -lmqtt to LINKFLAGS_eagle.app.v6
LINKFLAGS_eagle.app.v6 = \
	-L$(SDK_PATH)/lib        \
  ...
  -lmqtt      \
	-lcirom     \
	-lcrypto	  \
	...

and include headers towards the end of Makefile

...
INCLUDES := $(INCLUDES) -I $(PDIR)include
INCLUDES += -I $(SDK_PATH)/include/mqtt
sinclude $(SDK_PATH)/Makefile
...

Todos

  • SSL support
  • esp-open-rtos supprt
  • Add examples

MIT License

esp-rtos-mqtt's People

Contributors

vaibhav93 avatar

Watchers

codebeautiful 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.