I have the TinyMQTT-Broker example Uploaded to an ESP01.
(I have reason to believe that it's going.)
How do I get it Hosted?
Things I'm finding on the net are all about R_Pi as the broker.
Any solid leads, something 'PnP'?
It is already hosted on the ESP and you know its IP address and port number so you can connect to it with an MQTT client
I meant "on the cloud".
You have lost me
The broker is running on your local ESP, how can it be hosted "on the cloud" ? Do you mean that you want to allow access to it via the Internet ?
What exactly are you trying to do ?
Yes. So I can see the data from the client/s, remotely.
I thought (naively?) the Broker is between the Clients and could access the web (because it has my router ssid and password).
Do the clients and the broker use the router vs. broker-to-client directly?
The clients need to be able to access the IP address and port of the broker which is on your local network. Remote clients will not be able to do this because your local network is behind a firewall or it certainly should be. In any case, the IP address of the broker will be something like 192.168.1.123 and there are millions of other devices on the Internet with the same address, all on local networks
What you can do is to set up port forwarding on your router. The port forwarding rule will basically say "if anyone tries to access my router's IP address (you need to know it) using port number X (your choice) then forward it to 192.168.1.123 on port 1883 (ie the MQTT broker)
However, be aware that this is inviting everyone to access your router and potentially your network if you don't know what you are doing (or even if you do). I am getting way out of my depth here so I will stop at that point, but you could always use a publicly accessible broker such as broker.mqtt-dashboard.com:1883 and not run your own broker
If you want to test your local broker use the Tiny client example that came with the TinyMQTT library
Thanks for your Replies.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.