I’m not a programmer neither a Linux guy.
I setup an ESP32 with OpenMQTT BLE Gateway. My MQTT broker is a RasPi4 where ioBroker is running and a MQTT adapter, configured as Broker.
I get all the BLE data to my Pi.
So far so good.
But how can I send this mosquitto_pub commands?
I think I have to install Mosquitto on my Pi?
At a regular command like
“mosquitto_pub -t “home/OpenMQTTGateway/commands/MQTTtoSYS/config” -m ‘{“cmd”:“restart”}’”
is not IP address or port, so how can it communicate?
You do not have to install Mosquitto, but with the latest version 1.6.0. of OpenMQTTGateway you can use the WebUI’s Console functionality to enter the command topic part and command into the entry field and just hit return.
Or use an application like MQTT Explorer to also be able to publish MQTT commands easily with a UI.
OK, It’s working now.
More or less.
I have a strange behaviour.
I can just access the WebUI when I stop the MQTT broker on the other maschine.
When MQTT is running, sometimes I get just a Login screen but no WebUI.
Is the traffic such high?