Comments (3)
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.
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.
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)
- Sporadic resets - not entirely clear why HOT 14
- MicroPython Unix port compatibility HOT 2
- publish to broker on an event trigger. HOT 2
- TypeError: object with buffer protocol required HOT 1
- wifi is treated as internal details only HOT 4
- can not handle 2 PINs at same time HOT 7
- access to the socket instead of the queue? HOT 2
- Memory allocation failures with MP 1.21 HOT 2
- malform packet and subnet traversal HOT 5
- Support for MQTTv5 HOT 46
- ESP32 MPv1.21.1 Wifi state goes briefly to IDLE after CONNECTING HOT 7
- Ethernet Support HOT 2
- ESP32 no reconnect on WiFi outage HOT 13
- ESP32 can't connect to wifi after soft reset HOT 3
- First time power up connection failed due to weak wifi HOT 4
- Issue with the memoryview HOT 3
- OpenSSL Error[0]: error:0A00010B:SSL routines::wrong version number HOT 1
- Unable to subscribe (Solved) HOT 2
- Esp8266 for wifi and mqtt HOT 2
- MQTT reconnect not works HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-mqtt.