Code Monkey home page Code Monkey logo

Comments (3)

peterhinch avatar peterhinch commented on August 11, 2024

Not as far as I know. I recommend mosquitto which runs fine on a minimal Linux box such as a Raspberry Pi. But I don't know of a bare metal broker solution.

from micropython-mqtt.

beyonlo avatar beyonlo commented on August 11, 2024

Hello Peter.

Yes, I know the mosquitto and I already use it in the Rpi, including the Pi zero w. But I'm want to use ESP32 as a WiFi Gateway for the all other devices, that are ESP32 too. Maybe 20 ESP32 clients to each one ESP32 Gateway - via WiFi of course.

The ESP32 Gateway will have a 4G modem doing ppp over uart. So, the idea is to use MQTT client on all ESP32 clients and send data to ESP32 Gateway using MQTT - over WiFi. So, in the ESP32 Gateway will be running the MQTT Broker. And, still in the ESP32 Gateway, I will need to open a MQTT Client to send to a cloud MQTT Broker, like as IBM, over 4G/LTE. So in the ESP32 Gateway I will have a MQTT broker and a MQTT client.

Scenario:

ESP32 clients (MQTT client) <-----WiFi-----> ESP32 gateway (MQTT Broker and MQTT client) <------PPoS-----> IBM Cloud (MQTT Broker)

What do you think about that?

from micropython-mqtt.

peterhinch avatar peterhinch commented on August 11, 2024

I'm not sure why you need two MQTT brokers. It's valid for the one broker to be on the internet and there are various public brokers. But the scheme you outline should work, if you can find a decent local broker.

Otherwise for a local broker you could add a WiFi connected Raspberry Pi (or similar) running mosquitto.

You might want to ask on the forum where there are plenty of knowledgeable users. There was recent discussion of an alternative broker, but my recollection is that the conclusion was that it was of poor quality.

I am expecting to be off-grid until mid next week.

from micropython-mqtt.

Related Issues (20)

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.