Coder Social home page Coder Social logo

tochinet / picobroker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dynamicdevices/picobroker

0.0 0.0 0.0 380 KB

MQtt PicoBroker for ESP32 based on IBM RSMB

License: GNU General Public License v3.0

C 98.32% Makefile 0.23% CMake 0.33% Roff 1.13%

picobroker's Introduction

PicoBroker

Overview

A small MQTT and MQTT-SN port of IBM's Really Small Message Broker (RSMB).

Please use the --recurse-submodules argument to obtain RSMB.

This is a work in progress

Notes

  • using Espressif's ESP-IDF build system and components

  • using Platform.io for build (this project should open in Platform.io and all depencencies install)

  • RSMB is componentised in ./components/rsmb

Target Hardware

The intention is to support any ESP32 based hardware.

However at present we are testing only on M5Stack boards.

In addition the existing RSMB code requires an SD Card. This is because the code

  • loads a configuration file (which can be removed and options hardcoded)
  • loads some debug messages on start (which can probably be removed)
  • persists QoS1/2 messages (which is needed for some use-cases but may be optionally removed in future)

To prepare the target SD Card

  • format the card to FAT
  • copy components/rsmb/rsmb/src/Messages.1.3.0.2 to the root of the uSD card
  • copy a broker.cfg file to the root of the uSD card

e.g.

# sample configuration on port 1883 with retained persistence in /tmp
port 1883
max_inflight_messages 50
max_queued_messages 200
persistence_location /sdcard/tmp/
retained_persistence true
max_queued_messages 1000
allow_anonymous true

# bridge to one of two possible brokers
#connection remote
#       addresses 144.76.167.54:1883
#       addresses 127.0.0.1:1883
#       topic #

Build

You should be able to build, flash and monitor using Platform.io tools or ESP-IDP idf.py

Licensing

The RSMB component is licensed under Eclipse Public License - v 1.0

Unless otherwise indicated all other PicoBroker components are licensed until GPLv3

picobroker's People

Contributors

ajlennon avatar cameronswift 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.